Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flood warning when combining XR with cinemachine brain
case 1074030 is having issues of flood wanrings complaining about cinemachine brain conflicting with xr camera. This is due to ShouldUseVRFieldOfView() returning true in Camera::SetVerticalFieldOfView because we have a vr device. URP 10.0.0 fixed this using #22 by setting disableLegacyRenderer to true to force a VRDeviceToXRDisplaySetup::TeardownShimFuncs(*this);. This is so there's no function override left in the shim table when calling UninstallVRDeviceShims from ProcessPendingTextureRequestsSynchronized which will finally call ShimTeardownIfActive(); to finally reset completely the legacy render device s_LegacyDevice = NULL;.which allows ShouldUseVRFieldOfView() to return false and therefore not throw a warning in Camera::SetVerticalFieldOfView.
- Loading branch information