diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-01 00:13:35 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-01 01:30:36 +0300 |
commit | 9d932b426f0db9350a3fe49cd5bcf8b25e7cf8bb (patch) | |
tree | 000cf7fba17c21bd28eac5e0190a5531b0640c89 /source/blender/gpu/opengl/gl_context.cc | |
parent | 82a197cc7f74be2e8f4fbe2d40fc2aec100c4276 (diff) |
GL: Move MacOS debug callback to gl_debug.cc
And format to use the same callback as standard debugging layer.
Diffstat (limited to 'source/blender/gpu/opengl/gl_context.cc')
-rw-r--r-- | source/blender/gpu/opengl/gl_context.cc | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/source/blender/gpu/opengl/gl_context.cc b/source/blender/gpu/opengl/gl_context.cc index 7d564004a01..666f2b4756a 100644 --- a/source/blender/gpu/opengl/gl_context.cc +++ b/source/blender/gpu/opengl/gl_context.cc @@ -294,37 +294,3 @@ void GLContext::framebuffer_unregister(struct GPUFrameBuffer *fb) } /** \} */ - -/* -------------------------------------------------------------------- */ -/** \name Error Checking - * - * This is only useful for implementation that does not support the KHR_debug extension. - * \{ */ - -void GLContext::check_error(const char *info) -{ - GLenum error = glGetError(); - -#define ERROR_CASE(err) \ - case err: \ - fprintf(stderr, "GL error: %s : %s\n", #err, info); \ - BLI_system_backtrace(stderr); \ - break; - - switch (error) { - ERROR_CASE(GL_INVALID_ENUM) - ERROR_CASE(GL_INVALID_VALUE) - ERROR_CASE(GL_INVALID_OPERATION) - ERROR_CASE(GL_INVALID_FRAMEBUFFER_OPERATION) - ERROR_CASE(GL_OUT_OF_MEMORY) - ERROR_CASE(GL_STACK_UNDERFLOW) - ERROR_CASE(GL_STACK_OVERFLOW) - case GL_NO_ERROR: - break; - default: - fprintf(stderr, "Unknown GL error: %x : %s", error, info); - break; - } -} - -/** \} */ |