Mesa (9.0): glx: Set sRGBCapable to a default value

Ian Romanick idr at kemper.freedesktop.org
Fri Nov 2 19:23:37 UTC 2012


Module: Mesa
Branch: 9.0
Commit: 4b507f809c66a1b4245e63778943aeeed71f575c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b507f809c66a1b4245e63778943aeeed71f575c

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Thu Jul 12 13:56:32 2012 -0700

glx: Set sRGBCapable to a default value

Previously, if the server didn't send a GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT
tag, it would still be set to GLX_DONT_CARE (which is -1).  Set it to
GL_FALSE instead.

NOTE: This is a candidate for stable release branches.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Cc: Maciej Wieczorek <maciej.t.wieczorek at intel.com>
(cherry picked from commit 7b0f912e70d79bcb863ea38f7d3910ab2be0860e)

---

 src/glx/glxext.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/glx/glxext.c b/src/glx/glxext.c
index 9aae891..420e677 100644
--- a/src/glx/glxext.c
+++ b/src/glx/glxext.c
@@ -405,6 +405,8 @@ __glXInitializeVisualConfigFromTags(struct glx_config * config, int count,
 #endif
    }
 
+   config->sRGBCapable = GL_FALSE;
+
    /*
     ** Additional properties may be in a list at the end
     ** of the reply.  They are in pairs of property type




More information about the mesa-commit mailing list