Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-06-27 18:20:30 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-06-27 18:20:30 +0300
commit3d7329950eec5b2784fa6ba5d795849104f37ed5 (patch)
treeeb8f69f9078247ed9905a340c9b87124d559cb7a
parent4d74180b9fe1867c6d2deff704796e5318eb8e4a (diff)
OpenGL debug contexts:
Enable debug output in debug contexts for gl 4.3+
-rw-r--r--source/blender/gpu/intern/gpu_debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_debug.c b/source/blender/gpu/intern/gpu_debug.c
index 9f73b77ef5a..21d7eb4370b 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);