Make the gl-disable flag always available
authorMatthias Clasen <mclasen@redhat.com>
Thu, 22 Sep 2022 00:57:22 +0000 (20:57 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 22 Sep 2022 00:57:22 +0000 (20:57 -0400)
No need to restrict this to debug builds.

gdk/gdk.c
gdk/gdkdisplay.c

index 90f3c9ecd5bab619f3d46be4cfd2ba78c17dc435..46d02841cc447f5565d6b52d9501219fb37f1056 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -118,7 +118,7 @@ static const GdkDebugKey gdk_debug_keys[] = {
   { "clipboard",       GDK_DEBUG_CLIPBOARD, "Information about clipboards" },
   { "nograbs",         GDK_DEBUG_NOGRABS, "Disable pointer and keyboard grabs (X11)", TRUE },
   { "portals",         GDK_DEBUG_PORTALS, "Force the use of portals", TRUE },
-  { "gl-disable",      GDK_DEBUG_GL_DISABLE, "Disable OpenGL support" },
+  { "gl-disable",      GDK_DEBUG_GL_DISABLE, "Disable OpenGL support", TRUE },
   { "gl-software",     GDK_DEBUG_GL_SOFTWARE, "Force OpenGL software rendering" },
   { "gl-texture-rect", GDK_DEBUG_GL_TEXTURE_RECT, "Use OpenGL texture rectangle extension" },
   { "gl-legacy",       GDK_DEBUG_GL_LEGACY, "Use a legacy OpenGL context" },
index be5e2f5ff13dc6576384c14d2b99fa8f0a00e27a..1f4a6ab0aeeb287e69bbc83a78b26c5a2a30449f 100644 (file)
@@ -1233,7 +1233,7 @@ gdk_display_init_gl (GdkDisplay *self)
 
   before = GDK_PROFILER_CURRENT_TIME;
 
-  if (GDK_DISPLAY_DEBUG_CHECK (self, GL_DISABLE))
+  if (gdk_display_get_debug_flags (self) & GDK_DEBUG_GL_DISABLE)
     {
       g_set_error_literal (&priv->gl_error, GDK_GL_ERROR,
                            GDK_GL_ERROR_NOT_AVAILABLE,