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
icc-effect-5.14.5
Pierre Willenbrock 2017-11-20 17:35:23 +01:00 committed by Martin Flöser
parent 96af5965ee
commit 9300aa82be
1 changed files with 1 additions and 0 deletions

View File

@ -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,