From a98256265852fa32fa77408e4dcb6f854ae2f40d Mon Sep 17 00:00:00 2001 From: mittorn Date: Thu, 26 Oct 2023 04:47:44 +0300 Subject: [PATCH] ref_gl: Fix missing DebugOutput functions on GLES --- ref/gl/gl_opengl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ref/gl/gl_opengl.c b/ref/gl/gl_opengl.c index 360d0bdc..082885c8 100644 --- a/ref/gl/gl_opengl.c +++ b/ref/gl/gl_opengl.c @@ -859,7 +859,9 @@ void GL_InitExtensionsGLES( void ) #endif case GL_DEBUG_OUTPUT: if( glw_state.extended ) - GL_CheckExtension( "GL_KHR_debug", NULL, NULL, extid, 0 ); + GL_CheckExtension( "GL_KHR_debug", debugoutputfuncs, "gl_debug_output", extid, 0 ); + else + GL_SetExtension( extid, false ); break; // case GL_TEXTURE_COMPRESSION_EXT: NOPE // case GL_SHADER_GLSL100_EXT: NOPE @@ -1123,6 +1125,7 @@ void GL_InitExtensions( void ) // force everything to happen in the main thread instead of in a separate driver thread pglEnable( GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB ); + } // enable all the low priority messages