summaryrefslogtreecommitdiff
path: root/gdk/wayland
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-11 08:53:57 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-01-14 17:05:04 -0500
commitc5fc841285f9ab7939e7f1a01146780b47c4be3b (patch)
treefc7bc8ddeb228fccb05a04dcc33fc82edfa076f4 /gdk/wayland
parentaf7f69506882b92187bbdea21a62753903114392 (diff)
downloadgtk+-c5fc841285f9ab7939e7f1a01146780b47c4be3b.tar.gz
gdk: Reorganize env vars
Drop GDK_GL, GDK_VULKAN and GDK_RENDERING_MODE. Merge the useful bits into GDK_DEBUG. Drop unused debug flags (CURSOR).
Diffstat (limited to 'gdk/wayland')
-rw-r--r--gdk/wayland/gdkglcontext-wayland.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c
index 7f74a34f94..a2aecdaf94 100644
--- a/gdk/wayland/gdkglcontext-wayland.c
+++ b/gdk/wayland/gdkglcontext-wayland.c
@@ -56,9 +56,9 @@ gdk_wayland_gl_context_realize (GdkGLContext *context,
gdk_gl_context_get_required_version (context, &major, &minor);
debug_bit = gdk_gl_context_get_debug_enabled (context);
forward_bit = gdk_gl_context_get_forward_compatible (context);
- legacy_bit = (_gdk_gl_flags & GDK_GL_LEGACY) != 0 ||
+ legacy_bit = GDK_DEBUG_CHECK (GL_LEGACY) ||
(share != NULL && gdk_gl_context_is_legacy (share));
- use_es = (_gdk_gl_flags & GDK_GL_GLES) != 0 ||
+ use_es = GDK_DEBUG_CHECK (GL_GLES) ||
(share != NULL && gdk_gl_context_get_use_es (share));
flags = 0;