From 7702399222917ee0146200405a37a38942e8975e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 21 Feb 2014 01:46:49 +0100 Subject: [PATCH] Explicitly enable OpenGL ES when targeting Android. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b669eb74..870cd785b 100644 --- a/CMakeLists.txt +++ b/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)