From ca363d3ef805a39fe4e821813b1efa53b2c9c805 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 25 Jul 2019 00:01:25 +0200 Subject: Unify OpenGL ES support --- src/client/renderingengine.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/client/renderingengine.cpp') diff --git a/src/client/renderingengine.cpp b/src/client/renderingengine.cpp index 631616c06..6e6509eeb 100644 --- a/src/client/renderingengine.cpp +++ b/src/client/renderingengine.cpp @@ -48,7 +48,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #endif -#ifdef __ANDROID__ +#if ENABLE_GLES #include "filesys.h" #endif @@ -131,6 +131,11 @@ RenderingEngine::RenderingEngine(IEventReceiver *receiver) params.OGLES2ShaderPath = std::string(porting::path_user + DIR_DELIM + "media" + DIR_DELIM + "Shaders" + DIR_DELIM).c_str(); // clang-format on +#elif ENABLE_GLES + // there is no standardized path for these on desktop + std::string rel_path = std::string("client") + DIR_DELIM + + "shaders" + DIR_DELIM + "Irrlicht"; + params.OGLES2ShaderPath = (porting::path_share + DIR_DELIM + rel_path + DIR_DELIM).c_str(); #endif m_device = createDeviceEx(params); -- cgit v1.2.3