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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user