Просмотр исходного кода

Merge pull request #1628 from rgngl/patch-1

Fix iOS/OS X GL_ASSERT in release builds
Sean Taylor 11 лет назад
Родитель
Сommit
ce12125b14
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      gameplay/src/Base.h

+ 1 - 1
gameplay/src/Base.h

@@ -294,7 +294,7 @@ typedef unsigned long GamepadHandle;
  * mode and is therefore safe to use for realtime/per-frame GL
  * mode and is therefore safe to use for realtime/per-frame GL
  * function calls.
  * function calls.
  */
  */
-#ifdef NDEBUG
+#if defined(NDEBUG) || (defined(__APPLE__) && !defined(DEBUG))
 #define GL_ASSERT( gl_code ) gl_code
 #define GL_ASSERT( gl_code ) gl_code
 #else
 #else
 #define GL_ASSERT( gl_code ) do \
 #define GL_ASSERT( gl_code ) do \