Commit b22b4da9 authored by Adam Jackson's avatar Adam Jackson 🎧 Committed by Adam Jackson
Browse files

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: Emma Anholt's avatarEric Anholt <eric@anholt.net>
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <mdaenzer@redhat.com>
parent 5c20e4b8
...@@ -423,7 +423,8 @@ glamor_debug_output_callback(GLenum source, ...@@ -423,7 +423,8 @@ glamor_debug_output_callback(GLenum source,
static void static void
glamor_setup_debug_output(ScreenPtr screen) 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; return;
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS); glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment