Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11.2
-
None
-
Tested on macOS 10.12.6
Mid-2012 Macbook Pro
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: NVIDIA GeForce GT 650M OpenGL Engine
GL_VERSION: 4.1 NVIDIA-10.17.5 355.10.05.45f01
GLSL_VERSION: 4.10
Also an issue with legacy GL
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: NVIDIA GeForce GT 650M OpenGL Engine
GL_VERSION: 2.1 NVIDIA-10.17.5 355.10.05.45f01
GLSL_VERSION: 1.20
Using prebuilt Qt 5.11.2 (no modifications on my side)Tested on macOS 10.12.6 Mid-2012 Macbook Pro GL_VENDOR: NVIDIA Corporation GL_RENDERER: NVIDIA GeForce GT 650M OpenGL Engine GL_VERSION: 4.1 NVIDIA-10.17.5 355.10.05.45f01 GLSL_VERSION: 4.10 Also an issue with legacy GL GL_VENDOR: NVIDIA Corporation GL_RENDERER: NVIDIA GeForce GT 650M OpenGL Engine GL_VERSION: 2.1 NVIDIA-10.17.5 355.10.05.45f01 GLSL_VERSION: 1.20 Using prebuilt Qt 5.11.2 (no modifications on my side)
Description
QSurfaceFormat::sRGBColorSpace does not work on macOS unless QSurfaceFormat::setSamples() is used explicitly.
As an example, try building the default QOpenGLWidget example project, which serves as an example on how to use the QSurfaceFormat::sRGBColorSpace, and run it with and without --multisample --srgb
When run without --multisample but with --srgb, the framebuffer is never set to sRGB.
As a further test I've edited the project and tried calling QSurfaceFormat::setSamples(1) and it still triggers the sRGBColorSpace framebuffer.
Would be nice if this was sorted for the next LTS. v5.12