[Bf-blender-cvs] [3d73299] master: OpenGL debug contexts:
Antony Riakiotakis
noreply at git.blender.org
Sat Jun 27 17:20:55 CEST 2015
Commit: 3d7329950eec5b2784fa6ba5d795849104f37ed5
Author: Antony Riakiotakis
Date: Sat Jun 27 17:20:30 2015 +0200
Branches: master
https://developer.blender.org/rB3d7329950eec5b2784fa6ba5d795849104f37ed5
OpenGL debug contexts:
Enable debug output in debug contexts for gl 4.3+
===================================================================
M source/blender/gpu/intern/gpu_debug.c
===================================================================
diff --git a/source/blender/gpu/intern/gpu_debug.c b/source/blender/gpu/intern/gpu_debug.c
index 9f73b77..21d7eb4 100644
--- a/source/blender/gpu/intern/gpu_debug.c
+++ b/source/blender/gpu/intern/gpu_debug.c
@@ -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);
More information about the Bf-blender-cvs
mailing list