Mesa (master): glx: correctly mask the drawableType for GLX_ARB_fbconfig_float
Emil Velikov
evelikov at kemper.freedesktop.org
Thu Oct 6 15:20:43 UTC 2016
Module: Mesa
Branch: master
Commit: e542ed463dd5ae04e730901208344477afdc6a62
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e542ed463dd5ae04e730901208344477afdc6a62
Author: Emil Velikov <emil.velikov at collabora.com>
Date: Fri Sep 30 11:01:26 2016 +0100
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 at collabora.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/glx/glxext.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glx/glxext.c b/src/glx/glxext.c
index 0c2f73f..f6bc377 100644
--- a/src/glx/glxext.c
+++ b/src/glx/glxext.c
@@ -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 *
More information about the mesa-commit
mailing list