diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c index 4577ee4c7ea..f7a1a429a74 100644 --- a/src/glx/dri_common.c +++ b/src/glx/dri_common.c @@ -278,6 +278,18 @@ driConfigEqual(const __DRIcoreExtension *core, } break; + case __DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLE: + if (!scalarEqual(config, attrib, value)) { + static int warned; + if (!warned) { + dri_message(_LOADER_DEBUG, + "Disabling server's sRGB support\n"); + warned = 1; + } + config->sRGBCapable = 0; + } + break; + default: if (!scalarEqual(config, attrib, value)) return GL_FALSE;