Steps to reproduce:
1. Open the attached project "XR Issue.zip"
2. Open "Test Scene" and make sure OpenXR is enabled with Single pass Instanced
3. Enter Play Mode
4. Toggle XR rendering on/off using "V" key on the keyboard
5. Make a Standalone Build
6. In build, toggle XR rendering on/off using "V" key on the keyboard
7. Observe that when switching XR rendering off, the Cube GameObject becomes semi-transparent e.g renders incorrectly in the built Player
Expected results: Camera with XR rendering Disabled matches that of the Editor Play Mode
Actual Results: Camera with XR rendering Disabled does not match the output of the Editor (See attached "Built Player.mp4")
Reproducible: OpenXR 1.6.0 - 1.7.0 (2021.3.20f1, 2022.2.11f1, 2023.1.0b8, 2023.2.0a6)
Could not test below OpenXR 1.6.0 and 2020.3.46f1 due to package errors when downgrading
Reproducible on these devices:
VLNQA00415 - Oculus Quest 2 (Quest 2), CPU: Snapdragon XR2, GPU: Adreno 650, OS: 10
User devices:
Windows Mixed Reality and HP Reverb G2
Environment: Windows 10 22H2
Notes:
-Issue does not reproduce with MultiPass
-Issue does not reproduce with OculusXR plugin
-Issue does not reproduce if building a Development build, but it is reproducible with non development IL2CPP and Mono builds