Reproduction steps:
1. Open the attached project "IN-35263.zip"
2. Make sure the Editor uses OpenGL
3. Open "SampleScene"
4. Enter Play mode
Expected result: SystemInfo.GetCompatibleFormat does not return B8G8R8A8_SRGB
Actual result: SystemInfo.GetCompatibleFormat returns B8G8R8A8_SRGB, Editor might crash
Reproducible with: 2020.3.46f1, 2021.3.21f1, 2022.2.10f1, 2023.1.0b9, 2023.2.0a7
Reproducible on: Windows 11 i7-8700 NVIDIA GeForce GTX (OpenGL 4.5)
Not reproducible on: macOS 12.4 i9 Radeon Pro Vega/Intel UHD Graphics (Metal)
Notes:
1. Crash not reproduced by CQA
2. Error thrown when using this format with a temporary RenderTexture: "ArgumentException: RenderTextureDesc graphicsFormat must be a supported GraphicsFormat. B8G8R8A8_SRGB is not supported on this platform. Parameter name: desc.graphicsFormat"