diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-08-15 21:55:09 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-08-15 21:55:09 +0300 |
commit | c00b2d89911e20c8ace12a9256c689e9f43cc63b (patch) | |
tree | 1e65e72b480c3fb351f3a0070a68feb751151160 | |
parent | 76b6c77f2cba22a6760f0ff4e446b6ee4a7ad718 (diff) |
OpenGL: ignore deprecated API warnings
Reduces noise from --debug-gpu so we can spot serious errors.
Blender 2.7x uses OpenGL 2.1, we don't care if features are deprecated.
I'll re-enable these warnings for blender2.8 after next merge.
-rw-r--r-- | source/blender/gpu/intern/gpu_debug.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_debug.c b/source/blender/gpu/intern/gpu_debug.c index af69c2fca36..5ed51247858 100644 --- a/source/blender/gpu/intern/gpu_debug.c +++ b/source/blender/gpu/intern/gpu_debug.c @@ -208,6 +208,11 @@ static void APIENTRY gpu_debug_proc( GLenum severity, GLsizei UNUSED(length), const GLchar *message, const GLvoid *UNUSED(userParm)) { + if (type == GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR) { + /* Blender 2.7x uses OpenGL 2.1, we don't care if features are deprecated */ + return; + } + bool backtrace = false; switch (severity) { @@ -233,6 +238,11 @@ static void APIENTRY gpu_debug_proc_amd( GLenum severity, GLsizei UNUSED(length), const GLchar *message, GLvoid *UNUSED(userParm)) { + if (category == GL_DEBUG_CATEGORY_DEPRECATION_AMD) { + /* Blender 2.7x uses OpenGL 2.1, we don't care if features are deprecated */ + return; + } + bool backtrace = false; switch (severity) { |