diff options
author | Ian Romanick <[email protected]> | 2012-07-12 13:56:32 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-10-29 09:55:15 -0700 |
commit | 7b0f912e70d79bcb863ea38f7d3910ab2be0860e (patch) | |
tree | fb44380a7c46bccedfe5c491ea0b088583aac349 /src/glx/glxext.c | |
parent | 170f0459a2367406d4ec838b2eebdc6ff2f84f2c (diff) |
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Cc: Maciej Wieczorek <[email protected]>
Diffstat (limited to 'src/glx/glxext.c')
-rw-r--r-- | 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 e55c1c17841..ef1e7ad2c8b 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -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 |