From a7474f19d4a5312544918c07407ca27e2c79ead0 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 25 Mar 2021 13:41:41 -0400 Subject: [PATCH] glx: Default sRGBCapable in the same place as the other config attribs Reviewed-by: Eric Engestrom Part-of: --- src/glx/glxconfig.c | 2 +- src/glx/glxext.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/glx/glxconfig.c b/src/glx/glxconfig.c index 6c4267c..9253455 100644 --- a/src/glx/glxconfig.c +++ b/src/glx/glxconfig.c @@ -249,7 +249,7 @@ glx_config_create_list(unsigned count) (*next)->bindToMipmapTexture = GLX_DONT_CARE; (*next)->bindToTextureTargets = GLX_DONT_CARE; (*next)->yInverted = GLX_DONT_CARE; - (*next)->sRGBCapable = GLX_DONT_CARE; + (*next)->sRGBCapable = GL_FALSE; next = &((*next)->next); } diff --git a/src/glx/glxext.c b/src/glx/glxext.c index ac664a4..818946d 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -651,8 +651,6 @@ createConfigsFromProperties(Display * dpy, int nvisuals, int nprops, */ m->drawableType = GLX_WINDOW_BIT | GLX_PIXMAP_BIT | GLX_PBUFFER_BIT; #endif - /* Older X servers don't send this so we default it here. */ - m->sRGBCapable = GL_FALSE; __glXInitializeVisualConfigFromTags(m, nprops, props, tagged_only, GL_TRUE); m->screen = screen; -- 2.7.4