From ecc6d78b0541d66765d434dd4158066d6c664f8e Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 16 Jun 2021 13:52:10 -0400 Subject: [PATCH] glx: Don't strip off window/pixmap support from float fbconfigs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The X server doesn't get this wrong. It's not the client's job to correct what the server says here. And if anyone ever implements HDR for X11, you might in fact want to be able to use floats with a window. Reviewed-by: Michel Dänzer Reviewed-by: Emil Velikov Part-of: --- src/glx/glxext.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/glx/glxext.c b/src/glx/glxext.c index fa8de18816e..8930e866fa3 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -623,15 +623,6 @@ __glXInitializeVisualConfigFromTags(struct glx_config * config, int count, } } } - - /* The GLX_ARB_fbconfig_float spec says: - * - * "Note that floating point rendering is only supported for - * GLXPbuffer drawables." - */ - if (config->renderType & - (GLX_RGBA_FLOAT_BIT_ARB|GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT)) - config->drawableType &= GLX_PBUFFER_BIT; } static struct glx_config *