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 -#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 {