glx: add missing sRGB attribute check in fbconfigs_compatible()
authorNeha Bhende <bhenden@vmware.com>
Wed, 26 Apr 2017 23:21:32 +0000 (16:21 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 29 Apr 2017 03:03:06 +0000 (21:03 -0600)
This patch will allow driver to choose srgb capable FBconfig
if GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB attribute is 1

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/glx/glxcmds.c

index 53c9f9ce2afa9ccfd6c30ac33bc3c231d0ac21ab..309d550107b0e430f7578c60abd6a77d0e2e7269 100644 (file)
@@ -1014,6 +1014,7 @@ fbconfigs_compatible(const struct glx_config * const a,
 
    MATCH_MASK(drawableType);
    MATCH_MASK(renderType);
+   MATCH_DONT_CARE(sRGBCapable);
 
    /* There is a bug in a few of the XFree86 DDX drivers.  They contain
     * visuals with a "transparent type" of 0 when they really mean GLX_NONE.