Search Issue Tracker

Won't Fix

Votes

0

Found in

2020.3.46f1

2021.3.21f1

2022.2.10f1

2023.1.0b9

2023.2.0a7

Issue ID

UUM-30954

Regression

No

SystemInfo.GetCompatibleFormat returns not supported B8G8R8A8_SRGB format and Editor might crash when using it

--

-

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"

  1. Resolution Note:

    the problem here is due to User script not checking the support for correct usage of the graphics format. it checks for sampling usage instead of render...

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.