浏览代码

ios: fix iOS build by adding missing files to XCode project.

legacy
Sam Hocevar sam 13 年前
父节点
当前提交
ba10e59e45
共有 2 个文件被更改,包括 9 次插入3 次删除
  1. +6
    -0
      configure.ac
  2. +3
    -3
      src/debug/quad.cpp

+ 6
- 0
configure.ac 查看文件

@@ -112,6 +112,12 @@ PKG_CHECK_MODULES(GLES2, glesv2,
GL_CFLAGS="${GL_CFLAGS} ${GLES2_CFLAGS}"
GL_LIBS="${GL_LIBS} ${GLES2_LIBS}"],
[:])

PKG_CHECK_MODULES(GL, gl,
[ac_cv_my_have_gl="yes"
AC_DEFINE(HAVE_GL_2X, 1, Define to 1 if GL 2.x is available)],
[:])

AC_CHECK_LIB(GL, glLoadIdentity,
[ac_cv_my_have_gl="yes"
AC_DEFINE(HAVE_GL_2X, 1, Define to 1 if GL 2.x is available) # FIXME: hackish


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

@@ -1082,13 +1082,13 @@ void DebugQuad::ResetState()
#if defined HAVE_GLBEGIN || defined USE_GLEW || defined __CELLOS_LV2__
glClientActiveTexture(GL_TEXTURE0);
#endif
#if !defined __CELLOS_LV2__ && !defined __ANDROID__
#if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__
glTexEnvi(GL_POINT_SPRITE, GL_COORD_REPLACE, GL_FALSE);
#endif
glDisable(GL_TEXTURE_2D);

glDisable(GL_BLEND);
#if !defined __CELLOS_LV2__ && !defined __ANDROID__
#if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__
glDisable(GL_POINT_SPRITE);
#endif

@@ -1100,7 +1100,7 @@ void DebugQuad::ResetState()
cgGLDisableProfile(cgGLGetLatestProfile(CG_GL_FRAGMENT));
#endif

#if !defined __CELLOS_LV2__ && !defined __ANDROID__
#if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__
glDisable(GL_VERTEX_PROGRAM_POINT_SIZE);
#endif
}


正在加载...
取消
保存