glx: Set sRGBCapable to a default value
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 12 Jul 2012 20:56:32 +0000 (13:56 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 29 Oct 2012 16:55:15 +0000 (09:55 -0700)
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@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Maciej Wieczorek <maciej.t.wieczorek@intel.com>
src/glx/glxext.c

index e55c1c17841c6ddf701ab2ef7e1d4987475b80b9..ef1e7ad2c8bdda2331930cb17548fdc1302c8984 100644 (file)
@@ -374,6 +374,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