aboutsummaryrefslogtreecommitdiff
path: root/include/IrrCompileConfig.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-04-27 09:25:58 +0200
committersfan5 <sfan5@live.de>2021-04-27 09:25:58 +0200
commit341cdbfe0dbf35dd85d5710d82f9d2f81e36fa61 (patch)
tree88d449fca5181663c4fbb25b398e7085f20e883c /include/IrrCompileConfig.h
parent826de9f6dc1902672d75f2d0e7df2a4a6be48ff4 (diff)
downloadirrlicht-341cdbfe0dbf35dd85d5710d82f9d2f81e36fa61.tar.xz
Enable ogles2 on mobile platforms by default
It wasn't meant to be disabled.
Diffstat (limited to 'include/IrrCompileConfig.h')
-rw-r--r--include/IrrCompileConfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/IrrCompileConfig.h b/include/IrrCompileConfig.h
index 0fac275..6a1f5d4 100644
--- a/include/IrrCompileConfig.h
+++ b/include/IrrCompileConfig.h
@@ -269,7 +269,11 @@ Depending on platform you may have to enable _IRR_OGLES1_USE_KHRONOS_API_HEADERS
//! Define _IRR_COMPILE_WITH_OGLES2_ to compile the Irrlicht engine with OpenGL ES 2.0.
/** If you do not wish the engine to be compiled with OpenGL ES 2.0, comment this
define out. */
+#if defined(_IRR_ANDROID_PLATFORM_) || defined(_IRR_IOS_PLATFORM_)
+#define _IRR_COMPILE_WITH_OGLES2_
+#else
//#define _IRR_COMPILE_WITH_OGLES2_
+#endif
#ifdef NO_IRR_COMPILE_WITH_OGLES2_
#undef _IRR_COMPILE_WITH_OGLES2_
#endif