From eee2445c45f1044b8f99faef4e3796698b8aa9ad Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 9 Feb 2019 04:07:12 +0100 Subject: [PATCH] (GL) Buildfix for GL_DEBUG --- gfx/drivers/gl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index c8e9af6b47..b3180b24be 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -3216,11 +3216,11 @@ static void gl2_begin_debug(gl_t *gl) if (gl_check_capability(GL_CAPS_DEBUG)) { #ifdef HAVE_GL_DEBUG_ES - glDebugMessageCallbackKHR(gl_debug_cb, gl); + glDebugMessageCallbackKHR(gl2_debug_cb, gl); glDebugMessageControlKHR(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE); glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR); #else - glDebugMessageCallback(gl_debug_cb, gl); + glDebugMessageCallback(gl2_debug_cb, gl); glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE); glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS); #endif