Module: Mesa Branch: master Commit: a7474f19d4a5312544918c07407ca27e2c79ead0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7474f19d4a5312544918c07407ca27e2c79ead0
Author: Adam Jackson <[email protected]> Date: Thu Mar 25 13:41:41 2021 -0400 glx: Default sRGBCapable in the same place as the other config attribs Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9992> --- 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 6c4267c8f39..925345567fb 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 ac664a4a113..818946def91 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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
