glx: Default sRGBCapable in the same place as the other config attribs

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9992>
This commit is contained in:
Adam Jackson 2021-03-25 13:41:41 -04:00 committed by Marge Bot
parent dc265008c7
commit a7474f19d4
2 changed files with 1 additions and 3 deletions

View file

@ -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);
}

View file

@ -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;