glx: Don't strip off window/pixmap support from float fbconfigs
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 <mdaenzer@redhat.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13002>
This commit is contained in:
parent
71d8ac2bf8
commit
ecc6d78b05
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue