From 9300aa82be77ee23c346b85fb49091ab9728aba0 Mon Sep 17 00:00:00 2001 From: Pierre Willenbrock Date: Mon, 20 Nov 2017 17:35:23 +0100 Subject: [PATCH] Allow glXChooseFBConfig to return sRGB capable fbconfig Mesa's glXChooseFBConfig will not return any sRGB capable fbconfig when it is not explicitly asked for. On some systems, the only ARGB32 visual is paired with an sRGB capable fbconfig, so application windows using ARGB32 visuals would fail to display. BUG: 387159 FIXED-IN: 5.11.4 --- plugins/platforms/x11/standalone/glxbackend.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/platforms/x11/standalone/glxbackend.cpp b/plugins/platforms/x11/standalone/glxbackend.cpp index f61bb68013..8b6d458223 100644 --- a/plugins/platforms/x11/standalone/glxbackend.cpp +++ b/plugins/platforms/x11/standalone/glxbackend.cpp @@ -535,6 +535,7 @@ FBConfigInfo *GlxBackend::infoForVisual(xcb_visualid_t visual) GLX_X_VISUAL_TYPE, GLX_TRUE_COLOR, GLX_X_RENDERABLE, True, GLX_CONFIG_CAVEAT, int(GLX_DONT_CARE), // The ARGB32 visual is marked non-conformant in Catalyst + GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT, int(GLX_DONT_CARE), // The ARGB32 visual is marked sRGB capable in mesa/i965 GLX_BUFFER_SIZE, red_bits + green_bits + blue_bits + alpha_bits, GLX_RED_SIZE, red_bits, GLX_GREEN_SIZE, green_bits,