[gtk/gtk-3-24] wayland: Explicitly require RGBA8888



commit 0872338cf23f6eb1ea1811436670d372328c4b02
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 17 13:03:49 2019 -0400

    wayland: Explicitly require RGBA8888
    
    Its the format we expect to have. If we want to
    support 10-bit visuals at some point, that should
    be an explicit decision.

 gdk/wayland/gdkglcontext-wayland.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c
index 254900d1af..a2210257f7 100644
--- a/gdk/wayland/gdkglcontext-wayland.c
+++ b/gdk/wayland/gdkglcontext-wayland.c
@@ -389,18 +389,18 @@ find_eglconfig_for_window (GdkWindow  *window,
   attrs[i++] = EGL_RGB_BUFFER;
 
   attrs[i++] = EGL_RED_SIZE;
-  attrs[i++] = 1;
+  attrs[i++] = 8;
   attrs[i++] = EGL_GREEN_SIZE;
-  attrs[i++] = 1;
+  attrs[i++] = 8;
   attrs[i++] = EGL_BLUE_SIZE;
-  attrs[i++] = 1;
+  attrs[i++] = 8;
 
   use_rgba = (visual == gdk_screen_get_rgba_visual (gdk_display_get_default_screen (display)));
 
   if (use_rgba)
     {
       attrs[i++] = EGL_ALPHA_SIZE;
-      attrs[i++] = 1;
+      attrs[i++] = 8;
     }
   else
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]