Module: Mesa Branch: main Commit: 218aa7794136c6a9bc55d5c8c31e0ba450cf0f0b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=218aa7794136c6a9bc55d5c8c31e0ba450cf0f0b
Author: Adam Jackson <[email protected]> Date: Thu Sep 10 17:55:50 2020 -0400 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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22685> --- src/egl/drivers/dri2/egl_dri2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index ff17f027f54..90b8a62e029 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -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;
