diff options
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxscreens.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/glx/glxscreens.c b/glx/glxscreens.c index 29bacd988..62d66bc54 100644 --- a/glx/glxscreens.c +++ b/glx/glxscreens.c @@ -275,6 +275,11 @@ pickFBConfig(__GLXscreen * pGlxScreen, VisualPtr visual) /* If it's the 32-bit RGBA visual, demand a 32-bit fbconfig. */ if (visual->nplanes == 32 && config->rgbBits != 32) continue; + /* If it's the 32-bit RGBA visual, do not pick sRGB capable config. + * This can cause issues with compositors that are not sRGB aware. + */ + if (visual->nplanes == 32 && config->sRGBCapable == GL_TRUE) + continue; /* Can't use the same FBconfig for multiple X visuals. I think. */ if (config->visualID != 0) continue; |