Browse Source

Explicitly enable OpenGL ES when targeting Android.

pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
7702399222
  1. 6
      CMakeLists.txt

6
CMakeLists.txt

@ -103,6 +103,12 @@ if(CORRADE_TARGET_NACL OR CORRADE_TARGET_EMSCRIPTEN)
set(TARGET_GLES2 1)
endif()
# If targeting Android, set explicit OpenGL ES support. Decision between 2.0
# and 3.0 is up to the user
if(CORRADE_TARGET_ANDROID)
set(TARGET_GLES 1)
endif()
# NaCl newlib toolchain supports only static linking, dynamic linking is
# meaningless on Emscripten
if(CORRADE_TARGET_NACL_NEWLIB OR CORRADE_TARGET_EMSCRIPTEN)

Loading…
Cancel
Save