Browse Source

debug: fix iOS compilation of the debug quad code.

legacy
Sam Hocevar sam 13 years ago
parent
commit
28f0fc2675
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/debug/quad.cpp

+ 4
- 4
src/debug/quad.cpp View File

@@ -497,7 +497,7 @@ void DebugQuad::TickDraw(float deltams)
* *
* Renders an orange square. * Renders an orange square.
*/ */
#if !defined ANDROID_NDK
#if !defined ANDROID_NDK && !defined __APPLE__
if (!shader[0]) if (!shader[0])
#if !defined __CELLOS_LV2__ #if !defined __CELLOS_LV2__
shader[0] = Shader::Create( shader[0] = Shader::Create(
@@ -649,7 +649,7 @@ void DebugQuad::TickDraw(float deltams)
* *
* Renders a multicoloured square with varying colors. * Renders a multicoloured square with varying colors.
*/ */
#if !defined ANDROID_NDK
#if !defined ANDROID_NDK && !defined __APPLE__
if (!shader[0]) if (!shader[0])
{ {
#if !defined __CELLOS_LV2__ #if !defined __CELLOS_LV2__
@@ -714,7 +714,7 @@ void DebugQuad::TickDraw(float deltams)
* Renders a multicoloured square with varying colors xored with an * Renders a multicoloured square with varying colors xored with an
* animated distorted checkerboard. * animated distorted checkerboard.
*/ */
#if !defined ANDROID_NDK
#if !defined ANDROID_NDK && !defined __APPLE__
if (!shader[0]) if (!shader[0])
#if !defined __CELLOS_LV2__ #if !defined __CELLOS_LV2__
shader[0] = Shader::Create( shader[0] = Shader::Create(
@@ -945,7 +945,7 @@ void DebugQuad::ResetState()
glLoadIdentity(); glLoadIdentity();
#endif #endif


#if !defined ANDROID_NDK
#if !defined ANDROID_NDK && !defined __APPLE__
glColor4f(1.0f, 1.0f, 1.0f, 1.0f); glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
#endif #endif




Loading…
Cancel
Save