Looking back at this, I managed to get a KHR_debug message callback working.
While eglGetProcAddress() on “glDebugMessageCallbackKHR” returns NULL and on “glDebugMessageCallback” returns a function that doesn’t seem to do anything, compile-time linking with the C++ name mangled, DLL storage class, stdcall API:
extern GL_APICALL void GL_APIENTRY glDebugMessageCallback (<br />
void ( GL_APIENTRY * )( unsigned int, unsigned int, unsigned int, unsigned int, int, char const *, void const *),<br />
void * );
seems to work, with a DEBUG context (EGL_CONTEXT_FLAGS_KHR, EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR).
I do notice however that trying to glEnable() either GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR or GL_DEBUG_OUTPUT_KHR results in an invalid enum GL error. Any ideas what I might be doing wrong here?
Thanks!