diff options
-rw-r--r-- | src/glx/glxcmds.c | 1 | ||||
-rw-r--r-- | src/glx/glxext.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index e8485acd809..4db0228eaba 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -937,6 +937,7 @@ init_fbconfig_for_chooser(struct glx_config * config, config->fbconfigID = (GLXFBConfigID) (GLX_DONT_CARE); config->swapMethod = GLX_DONT_CARE; + config->sRGBCapable = GLX_DONT_CARE; } #define MATCH_DONT_CARE( param ) \ diff --git a/src/glx/glxext.c b/src/glx/glxext.c index 5f23d3717a4..ca3bf9d027f 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -402,8 +402,6 @@ __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 @@ -660,6 +658,8 @@ 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; |