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:
parent
5c20e4b834
commit
b22b4da980
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user