This issue was found when testing the fix for a similar issue fixed in [this PR|[Internal link]|https://github.cds.internal.unity3d.com/unity/unity/pull/114884].]
this is the original bug [Internal link]{}{}
Thomas did a RCA here [Internal link] {}which indicates an issue in the composition layers package.
Steps to reproduce:
- create a 2nd camera in a scene with terrain that renders to a render texture and on-tile rendering enabled in the renderer settings (attached project has this set up in a minimal repro).
- change a setting such as enabling open xr or enabling multithreading in the player settings (I didn't test any others but assume any setting may repro).
- build the project
- check console for errors
Actual results:
several errors occur in the console
[0] Unity.XR.CompositionLayers.Emulation.EmulationLayerUniversalScriptableRendererPass (Underlay, BeforeRenderingGbuffer)
[1] Unity.XR.CompositionLayers.Emulation.EmulationColorScaleBiasPass
[2] Unity.XR.CompositionLayers.Emulation.EmulationLayerUniversalScriptableRendererPass (Overlay, AfterRenderingPostProcessing)
Expected results:
No errors
Reproducible with versions:
6000.7.0a3_4e19c2c3389f
Not reproducible with versions:
did not test others versions
Tested on (OS):
Windows