Reproduction steps:
1. Open the attached project “RenderDocBug“
2. Open the Game View
3. In the Toolbar select the “Load RenderDoc” option
4. In the Toolbar press the Capture button
5. Observe the Console Window
Expected result: The press of the Capture button does not cause any errors
Actual result: InvalidOperationException is logged to the Console Window
Reproducible with: 2022.2.21f1, 2022.3.7f1, 2023.1.8f1, 2023.2.0b4
Not reproducible with: 2021.3.29f1, 2022.2.20f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested