aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorMaksim <MoNTE48@mail.ua>2020-04-22 20:03:46 +0200
committerGitHub <noreply@github.com>2020-04-22 20:03:46 +0200
commit6ba44d74526031a07bbc5093b708b8b99a27456a (patch)
treefa6535be1818c963c7cb0256ac3a683fe3415232 /src/client
parent5355cb1d87f60bc5548a8a9311e597b9c6046013 (diff)
downloadminetest-6ba44d74526031a07bbc5093b708b8b99a27456a.tar.gz
minetest-6ba44d74526031a07bbc5093b708b8b99a27456a.tar.bz2
minetest-6ba44d74526031a07bbc5093b708b8b99a27456a.zip
Android: add OpenGL ES 2 support (#9715)
.. and bump gradle to 3.6.3
Diffstat (limited to 'src/client')
-rw-r--r--src/client/renderingengine.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/renderingengine.cpp b/src/client/renderingengine.cpp
index eae6ca7d3..f5aca8f58 100644
--- a/src/client/renderingengine.cpp
+++ b/src/client/renderingengine.cpp
@@ -130,12 +130,9 @@ RenderingEngine::RenderingEngine(IEventReceiver *receiver)
params.HighPrecisionFPU = g_settings->getBool("high_precision_fpu");
params.ZBufferBits = 24;
#ifdef __ANDROID__
- // clang-format off
params.PrivateData = porting::app_global;
- params.OGLES2ShaderPath = std::string(porting::path_user + DIR_DELIM + "media" +
- DIR_DELIM + "Shaders" + DIR_DELIM).c_str();
- // clang-format on
-#elif ENABLE_GLES
+#endif
+#if ENABLE_GLES
// there is no standardized path for these on desktop
std::string rel_path = std::string("client") + DIR_DELIM
+ "shaders" + DIR_DELIM + "Irrlicht";