Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode
4. Observe the Console window
Expected result: No errors are thrown
Actual result: Errors are thrown
Reproducible with: 6000.0.20f1, 6000.0.21f1
Not reproducible with: 2021.3.44f1, 2022.3.48f1, 6000.0.19f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Errors:
- InvalidOperationException: Trying to SetRenderAttachment on a texture that is already used through UseTexture/SetRenderAttachment. Consider updating your code. (pass 'BlitFinalToBackBuffer' resource 'Backbuffer color').
- Render Graph Execution error
- InvalidOperationException: The CullingResults instance is no longer valid. This can happen if you re-use it across multiple frames.