diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-25 16:16:06 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-25 16:16:06 +0300 |
commit | 9dd4d87f186545cad24fc95e182ab58d1bc87ea1 (patch) | |
tree | 5979a4f16fff90bebc8422b80569ad1c9dd46584 /source | |
parent | b43f4fda19b935ebeb144e14bba2fc7c590d2ffb (diff) |
GPU: Fix compilation issue caused by rBb43f4fda19b9
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/opengl/gl_context.hh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/gpu/opengl/gl_context.hh b/source/blender/gpu/opengl/gl_context.hh index e16f4bbf076..35121a960ba 100644 --- a/source/blender/gpu/opengl/gl_context.hh +++ b/source/blender/gpu/opengl/gl_context.hh @@ -34,13 +34,11 @@ #include <mutex> -#ifdef DEBUG /* Enabled on MacOS by default since there is no support for debug callbacks. */ -# ifdef __APPLE__ -# define GL_CHECK_ERROR(info) GLContext::check_error(info) -# else -# define GL_CHECK_ERROR(info) -# endif +#if defined(DEBUG) && defined(__APPLE__) +# define GL_CHECK_ERROR(info) GLContext::check_error(info) +#else +# define GL_CHECK_ERROR(info) #endif namespace blender { |