summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMichel Dänzer <mdaenzer@redhat.com>2022-01-14 18:16:01 +0100
committerMichel Dänzer <michel@daenzer.net>2022-01-14 18:16:01 +0100
commit50b4a70def8edb9b7d88745d3f1c2b372268650a (patch)
treecac727b85d94d9c7598dc2e4612413c98d6e6436 /hw
parent288ec0e046c4cb975367f5ad043b76666c30fe9b (diff)
xwayland/glx: Flip order of sRGB & non-sRGB fbconfigs
The sRGB ones came before the non-sRGB ones, which broke some clients. Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1225 Acked-by: Olivier Fourdan <ofourdan@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/xwayland/xwayland-glx.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/hw/xwayland/xwayland-glx.c b/hw/xwayland/xwayland-glx.c
index 3eb1f5979..a3e85fc2f 100644
--- a/hw/xwayland/xwayland-glx.c
+++ b/hw/xwayland/xwayland-glx.c
@@ -342,17 +342,18 @@ egl_mirror_configs(ScreenPtr pScreen, struct egl_screen *screen)
for (i = nconfigs - 1; i > 0; i--)
for (j = 0; j < 3; j++) /* direct_color */
for (k = 0; k < 2; k++) /* double_buffer */ {
- c = translate_eglconfig(screen, host_configs[i], c,
- /* direct_color */ j == 1,
- /* double_buffer */ k > 0,
- /* duplicate_for_composite */ j == 0,
- /* srgb_only */ false);
if (can_srgb)
c = translate_eglconfig(screen, host_configs[i], c,
/* direct_color */ j == 1,
/* double_buffer */ k > 0,
/* duplicate_for_composite */ j == 0,
/* srgb_only */ true);
+
+ c = translate_eglconfig(screen, host_configs[i], c,
+ /* direct_color */ j == 1,
+ /* double_buffer */ k > 0,
+ /* duplicate_for_composite */ j == 0,
+ /* srgb_only */ false);
}
screen->configs = host_configs;