[gtk+] GdkGlContextWayland: Don't require specific bit depths



commit 0814cd9f8b07ada390749da9e918f7100a0e24a7
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Oct 28 18:29:02 2014 +0100

    GdkGlContextWayland: Don't require specific bit depths
    
    This just means we may fail to get a gl context, we just require
    *some* color depth.

 gdk/wayland/gdkglcontext-wayland.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c
index fbe79ab..5fc320d 100644
--- a/gdk/wayland/gdkglcontext-wayland.c
+++ b/gdk/wayland/gdkglcontext-wayland.c
@@ -249,11 +249,11 @@ find_eglconfig_for_window (GdkWindow        *window,
   attrs[i++] = EGL_RGB_BUFFER;
 
   attrs[i++] = EGL_RED_SIZE;
-  attrs[i++] = gdk_visual_get_bits_per_rgb (visual);
+  attrs[i++] = 1;
   attrs[i++] = EGL_GREEN_SIZE;
-  attrs[i++] = gdk_visual_get_bits_per_rgb (visual);
+  attrs[i++] = 1;
   attrs[i++] = EGL_BLUE_SIZE;
-  attrs[i++] = gdk_visual_get_bits_per_rgb (visual);
+  attrs[i++] = 1;
 
   use_rgba = (visual == gdk_screen_get_rgba_visual (gdk_display_get_default_screen (display)));
 


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