xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Dec 9 15:09:29 UTC 2022


 hw/xwayland/xwayland-glx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3852b0d10a061348ea8214fbcbef3c5c08cac0b6
Author: Doğukan Korkmaztürk <dkorkmazturk at nvidia.com>
Date:   Tue Nov 8 10:05:59 2022 -0500

    xwayland/glx: Mirror all EGLConfigs
    
    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 <dkorkmazturk at nvidia.com>
    Fixes: 8469241592 - xwayland: Add EGL-backed GLX provider

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)


More information about the xorg-commit mailing list