[Mesa-dev] [PATCH 1/3] glx: correctly mask the drawableType for GLX_ARB_fbconfig_float

Emil Velikov emil.l.velikov at gmail.com
Fri Sep 30 10:01:26 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

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>
---
 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 dc87fb9..4c03011 100644
--- a/src/glx/glxext.c
+++ b/src/glx/glxext.c
@@ -592,7 +592,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 *
-- 
2.9.3



More information about the mesa-dev mailing list