egl: Clear EGL_WINDOW_BIT for non-double-buffered EGLConfigs

EGL windows are not required to support single-buffered rendering,
and it's awful, so let's not.

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22685>
This commit is contained in:
Adam Jackson 2020-09-10 17:55:50 -04:00 committed by Marge Bot
parent 3f14fd8578
commit 218aa77941

View file

@ -565,6 +565,9 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
if (double_buffer) {
surface_type &= ~EGL_PIXMAP_BIT;
}
else {
surface_type &= ~EGL_WINDOW_BIT;
}
if (!surface_type)
return NULL;