Commit: 9dd4d87f186545cad24fc95e182ab58d1bc87ea1
Author: Clément Foucault
Date: Tue Aug 25 15:16:06 2020 +0200
Branches: master
https://developer.blender.org/rB9dd4d87f186545cad24fc95e182ab58d1bc87ea1
GPU: Fix compilation issue caused by rBb43f4fda19b9
===================================================================
M source/blender/gpu/opengl/gl_context.hh
===================================================================
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 {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs