Fix iOS compiler warning

This commit is contained in:
Benau 2020-02-07 13:04:34 +08:00
parent ccc2ee1ea3
commit 2cdd6cf754
2 changed files with 8 additions and 2 deletions

View File

@ -132,7 +132,10 @@ endif()
if(USE_GLES2) if(USE_GLES2)
add_definitions(-DUSE_GLES2) add_definitions(-DUSE_GLES2)
add_definitions(-D_IRR_COMPILE_WITH_OGLES2_ -DNO_IRR_COMPILE_WITH_OPENGL_) if (NOT IOS)
add_definitions(-D_IRR_COMPILE_WITH_OGLES2_)
endif()
add_definitions(-DNO_IRR_COMPILE_WITH_OPENGL_)
endif() endif()
if(SERVER_ONLY) if(SERVER_ONLY)

View File

@ -106,7 +106,10 @@ else()
endif() endif()
if(USE_GLES2) if(USE_GLES2)
add_definitions(-D_IRR_COMPILE_WITH_OGLES2_ -DNO_IRR_COMPILE_WITH_OPENGL_) if (NOT IOS)
add_definitions(-D_IRR_COMPILE_WITH_OGLES2_)
endif()
add_definitions(-DNO_IRR_COMPILE_WITH_OPENGL_)
endif() endif()
if(CYGWIN) if(CYGWIN)