[gtk+/wip/ebassi/gles: 7/17] wayland: Honour GDK_GL=gles on context creation



commit 463240523487d5d9e9e50bdae97bc7d1e76e8162
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Apr 22 12:45:32 2016 +0100

    wayland: Honour GDK_GL=gles on context creation

 gdk/wayland/gdkglcontext-wayland.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c
index 1519e1a..e61b24d 100644
--- a/gdk/wayland/gdkglcontext-wayland.c
+++ b/gdk/wayland/gdkglcontext-wayland.c
@@ -122,7 +122,8 @@ gdk_wayland_gl_context_realize (GdkGLContext *context,
   forward_bit = gdk_gl_context_get_forward_compatible (context);
   legacy_bit = (_gdk_gl_flags & GDK_GL_LEGACY) != 0 ||
                (share != NULL && gdk_gl_context_is_legacy (share));
-  use_es = gdk_gl_context_get_use_es (context);
+  use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ||
+           (share != NULL && gdk_gl_context_get_use_es (share));
 
   flags = 0;
 
@@ -198,6 +199,7 @@ gdk_wayland_gl_context_realize (GdkGLContext *context,
   context_wayland->egl_context = ctx;
 
   gdk_gl_context_set_is_legacy (context, legacy_bit);
+  gdk_gl_context_set_use_es (context, use_es);
 
   return TRUE;
 }


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