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>
This commit is contained in:
Adam Jackson 2020-08-14 19:19:46 -04:00 committed by Adam Jackson
parent 5c20e4b834
commit b22b4da980
1 changed files with 2 additions and 1 deletions

View File

@ -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);