GdkGLContext: check for GL_KHR_debug for GL debug output
authorTimm Bäder <mail@baedert.org>
Tue, 17 Dec 2019 08:06:15 +0000 (09:06 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 7 Jan 2020 16:27:16 +0000 (17:27 +0100)
This is available in GLES.

gdk/gdkglcontext.c

index 9f3ea5d93872d9382e220006ac33cee48a2e5071..ddf9cd3f955e80dbf0a519809ffb5255405306a1 100644 (file)
@@ -955,7 +955,8 @@ gdk_gl_context_check_extensions (GdkGLContext *context)
   if (priv->use_es < 0)
     priv->use_es = !epoxy_is_desktop_gl ();
 
-  priv->has_debug_output = epoxy_has_gl_extension ("GL_ARB_debug_output");
+  priv->has_debug_output = epoxy_has_gl_extension ("GL_ARB_debug_output") ||
+                           epoxy_has_gl_extension ("GL_KHR_debug");
 
 #ifdef G_ENABLE_CONSISTENCY_CHECKS
   if (priv->has_debug_output)