瀏覽代碼

ios: update XCode project and fix a GL test compilation issue.

legacy
Sam Hocevar sam 14 年之前
父節點
當前提交
473166f72d
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      src/debug/quad.cpp

+ 3
- 3
src/debug/quad.cpp 查看文件

@@ -430,7 +430,7 @@ void DebugQuad::TickDraw(float deltams)
* *
* Renders an orange square. * Renders an orange square.
*/ */
#if !defined ANDROID_NDK
#if !defined ANDROID_NDK && !defined __APPLE__
glColor4f(orange.x, orange.y, orange.z, orange.w); glColor4f(orange.x, orange.y, orange.z, orange.w);
glEnableClientState(GL_VERTEX_ARRAY); glEnableClientState(GL_VERTEX_ARRAY);


@@ -448,7 +448,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__
glEnableClientState(GL_VERTEX_ARRAY); glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_COLOR_ARRAY); glEnableClientState(GL_COLOR_ARRAY);


@@ -469,7 +469,7 @@ void DebugQuad::TickDraw(float deltams)
* Renders a multicoloured square with varying colors multiplied with an * Renders a multicoloured square with varying colors multiplied with an
* animated distorted checkerboard. * animated distorted checkerboard.
*/ */
#if !defined ANDROID_NDK
#if !defined ANDROID_NDK && !defined __APPLE__
glEnable(GL_TEXTURE_2D); glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, data->texture[0]); glBindTexture(GL_TEXTURE_2D, data->texture[0]);
glEnableClientState(GL_VERTEX_ARRAY); glEnableClientState(GL_VERTEX_ARRAY);


Loading…
取消
儲存