summaryrefslogtreecommitdiff
path: root/src/glx
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-09-30 11:01:26 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-10-06 15:03:46 +0100
commite542ed463dd5ae04e730901208344477afdc6a62 (patch)
treeec8a739d63fb32bec4bb66a1e93df721e6e23e28 /src/glx
parenta89faa2022fd995af2019c886b152b49a01f9392 (diff)
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>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/glxext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/glxext.c b/src/glx/glxext.c
index 0c2f73fea00..f6bc377add5 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 *