From 218aa7794136c6a9bc55d5c8c31e0ba450cf0f0b Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 10 Sep 2020 17:55:50 -0400 Subject: [PATCH] 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 Reviewed-by: Ian Romanick Part-of: --- 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 ff17f02..90b8a62 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; -- 2.7.4