From: Neha Bhende Date: Wed, 26 Apr 2017 23:21:32 +0000 (-0700) Subject: glx: add missing sRGB attribute check in fbconfigs_compatible() X-Git-Tag: upstream/18.1.0~10320 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e06e281c6ee342276d087ed4ee4a442626e433a;p=platform%2Fupstream%2Fmesa.git 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 Reviewed-by: Charmaine Lee --- diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 53c9f9c..309d550 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.