summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2020-08-14 19:19:46 -0400
committerAdam Jackson <ajax@nwnk.net>2020-08-18 21:53:20 +0000
commitb22b4da980b763af5124f26627cad93983542d6b (patch)
tree167715803661341bbdbfe04bb2a7baa84b15ad0f
parent5c20e4b834145f590c68dbc98e33c7d3d710001a (diff)
glamor: Fix debugging callback setup on GLES
You will not find GL_ARB_* extensions in a GLES context by definition, the droid you're looking for is named GL_KHR_debug. Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
-rw-r--r--glamor/glamor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/glamor/glamor.c b/glamor/glamor.c
index a11e2212d..3baef4b9f 100644
--- a/glamor/glamor.c
+++ b/glamor/glamor.c
@@ -423,7 +423,8 @@ glamor_debug_output_callback(GLenum source,
static void
glamor_setup_debug_output(ScreenPtr screen)
{
- if (!epoxy_has_gl_extension("GL_ARB_debug_output"))
+ if (!epoxy_has_gl_extension("GL_KHR_debug") &&
+ !epoxy_has_gl_extension("GL_ARB_debug_output"))
return;
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);