forked from bartvdbraak/blender
OpenGL debug contexts:
Enable debug output in debug contexts for gl 4.3+
This commit is contained in:
parent
4d74180b9f
commit
3d7329950e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user