summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorNeha Bhende <[email protected]>2017-04-26 16:21:32 -0700
committerBrian Paul <[email protected]>2017-04-28 21:03:06 -0600
commit6e06e281c6ee342276d087ed4ee4a442626e433a (patch)
tree922d5db1d38009cf8b11f3d37e2824a5ca10a0cc /src/glx
parentca59fd17061aeffc55847755de1ed2b6600bcf84 (diff)
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 <[email protected]> Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/glxcmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index 53c9f9ce2af..309d550107b 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.