diff options
author | proller <proller@github.com> | 2013-03-02 20:44:08 +0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-03-16 22:37:50 -0400 |
commit | 10c03e1a9d09ba0369ea3fbff1ec3a9436a3b706 (patch) | |
tree | 78fb5ea11a7ed169290f90b7f5bc9ec9647e52ff /src | |
parent | 67228160aed84e0ef07a863ac0127931f8d58b05 (diff) | |
download | minetest-10c03e1a9d09ba0369ea3fbff1ec3a9436a3b706.tar.gz minetest-10c03e1a9d09ba0369ea3fbff1ec3a9436a3b706.tar.bz2 minetest-10c03e1a9d09ba0369ea3fbff1ec3a9436a3b706.zip |
build with ogles2 driver
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/main.cpp | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0f8396c02..d91248cb6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -172,6 +172,7 @@ endif() find_package(Jthread REQUIRED) find_package(Sqlite3 REQUIRED) find_package(Json REQUIRED) +find_package(OpenGLES2) if(USE_FREETYPE) find_package(Freetype REQUIRED) @@ -386,6 +387,7 @@ if(BUILD_CLIENT) ${SQLITE3_LIBRARY} ${LUA_LIBRARY} ${JSON_LIBRARY} + ${OPENGLES2_LIBRARIES} ${PLATFORM_LIBS} ${CLIENT_PLATFORM_LIBS} ) diff --git a/src/main.cpp b/src/main.cpp index 73be969ad..e5aa3017d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1350,6 +1350,14 @@ int main(int argc, char *argv[]) driverType = video::EDT_DIRECT3D9; else if(driverstring == "opengl") driverType = video::EDT_OPENGL; +#ifdef _IRR_COMPILE_WITH_OGLES1_ + else if(driverstring == "ogles1") + driverType = video::EDT_OGLES1; +#endif +#ifdef _IRR_COMPILE_WITH_OGLES2_ + else if(driverstring == "ogles2") + driverType = video::EDT_OGLES2; +#endif else { errorstream<<"WARNING: Invalid video_driver specified; defaulting " |