OpenGL debug contexts:

Enable debug output in debug contexts for gl 4.3+
This commit is contained in:
Antonis Ryakiotakis 2015-06-27 17:20:30 +02:00
parent 4d74180b9f
commit 3d7329950e
1 changed files with 1 additions and 0 deletions

View File

@ -191,6 +191,7 @@ void gpu_debug_init(void)
#if !defined(WITH_GLEW_ES) && !defined(GLEW_ES_ONLY)
if (GLEW_VERSION_4_3) {
glEnable(GL_DEBUG_OUTPUT);
glDebugMessageCallback(gpu_debug_proc, mxGetCurrentContext());
glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE);
GPU_STRING_MARKER(sizeof(success), success);