glx: correctly mask the drawableType for GLX_ARB_fbconfig_float

The comment/spec says - only for pbuffer drawables, while the code
clears the window/pixmap bit. Practise what you preach and apply the
trivial tweak. In practise this should not cause functional change.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Emil Velikov
2016-09-30 11:01:26 +01:00
committed by Emil Velikov
parent a89faa2022
commit e542ed463d
+1 -1
View File
@@ -599,7 +599,7 @@ __glXInitializeVisualConfigFromTags(struct glx_config * config, int count,
* GLXPbuffer drawables."
*/
if (config->floatMode)
config->drawableType &= ~(GLX_WINDOW_BIT|GLX_PIXMAP_BIT);
config->drawableType &= GLX_PBUFFER_BIT;
}
static struct glx_config *