Mesa (master): glx: add missing sRGB attribute check in fbconfigs_compatible()

Brian Paul brianp at kemper.freedesktop.org
Sat Apr 29 03:07:38 UTC 2017


Module: Mesa
Branch: master
Commit: 6e06e281c6ee342276d087ed4ee4a442626e433a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e06e281c6ee342276d087ed4ee4a442626e433a

Author: Neha Bhende <bhenden at vmware.com>
Date:   Wed Apr 26 16:21:32 2017 -0700

glx: add missing sRGB attribute check in fbconfigs_compatible()

This patch will allow driver to choose srgb capable FBconfig
if GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB attribute is 1

Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Charmaine Lee <charmainel at vmware.com>

---

 src/glx/glxcmds.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index 53c9f9ce2a..309d550107 100644
--- a/src/glx/glxcmds.c
+++ b/src/glx/glxcmds.c
@@ -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.




More information about the mesa-commit mailing list