[gtk+/wip/ebassi/gles: 5/24] gdk: Add 'GDK_GL=gles' flag



commit 3da73371b92b849758a5743212a88237696568c1
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Apr 22 12:40:57 2016 +0100

    gdk: Add 'GDK_GL=gles' flag
    
    Allows forcing the selection of a GLES context.

 gdk/gdk.c          |    3 ++-
 gdk/gdkinternals.h |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdk.c b/gdk/gdk.c
index d57502a..6c7464c 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -146,7 +146,8 @@ static const GDebugKey gdk_gl_keys[] = {
   { "software-draw-gl",      GDK_GL_SOFTWARE_DRAW_GL },
   { "software-draw-surface", GDK_GL_SOFTWARE_DRAW_SURFACE },
   { "texture-rectangle",     GDK_GL_TEXTURE_RECTANGLE },
-  { "legacy",                GDK_GL_LEGACY }
+  { "legacy",                GDK_GL_LEGACY },
+  { "gles",                  GDK_GL_GLES },
 };
 
 #ifdef G_ENABLE_DEBUG
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 9f7a0ab..f128699 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -100,7 +100,8 @@ typedef enum {
   GDK_GL_SOFTWARE_DRAW_GL       = 1 << 2,
   GDK_GL_SOFTWARE_DRAW_SURFACE  = 1 << 3,
   GDK_GL_TEXTURE_RECTANGLE      = 1 << 4,
-  GDK_GL_LEGACY                 = 1 << 5
+  GDK_GL_LEGACY                 = 1 << 5,
+  GDK_GL_GLES                   = 1 << 6
 } GdkGLFlags;
 
 extern GList            *_gdk_default_filters;


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