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:
authorClément Foucault <foucault.clem@gmail.com>2020-08-25 16:16:06 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-08-25 16:16:06 +0300
commit9dd4d87f186545cad24fc95e182ab58d1bc87ea1 (patch)
tree5979a4f16fff90bebc8422b80569ad1c9dd46584 /source/blender/gpu/opengl/gl_context.hh
parentb43f4fda19b935ebeb144e14bba2fc7c590d2ffb (diff)
GPU: Fix compilation issue caused by rBb43f4fda19b9
Diffstat (limited to 'source/blender/gpu/opengl/gl_context.hh')
-rw-r--r--source/blender/gpu/opengl/gl_context.hh10
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 {