From 3852b0d10a061348ea8214fbcbef3c5c08cac0b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fukan=20Korkmazt=C3=BCrk?= Date: Tue, 8 Nov 2022 10:05:59 -0500 Subject: [PATCH] xwayland/glx: Mirror all EGLConfigs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the for-loop that iterates over the received EGLConfigs to include the very first EGLConfig with index 0. Signed-off-by: Doğukan Korkmaztürk Fixes: 8469241592 - xwayland: Add EGL-backed GLX provider --- hw/xwayland/xwayland-glx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwayland/xwayland-glx.c b/hw/xwayland/xwayland-glx.c index a3e85fc2f..4689b9ed6 100644 --- a/hw/xwayland/xwayland-glx.c +++ b/hw/xwayland/xwayland-glx.c @@ -339,7 +339,7 @@ egl_mirror_configs(ScreenPtr pScreen, struct egl_screen *screen) /* We walk the EGL configs backwards to make building the * ->next chain easier. */ - for (i = nconfigs - 1; i > 0; i--) + for (i = nconfigs - 1; i >= 0; i--) for (j = 0; j < 3; j++) /* direct_color */ for (k = 0; k < 2; k++) /* double_buffer */ { if (can_srgb)