summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2019-07-25 00:01:25 +0200
committersfan5 <sfan5@live.de>2019-08-04 16:12:52 +0200
commitca363d3ef805a39fe4e821813b1efa53b2c9c805 (patch)
tree20ed44b34cdbd66b53d7c0c8e7275f134276811f /src/gui
parent526a9e4b66abaf83eb6b1aaa3e93375acd87b830 (diff)
downloadminetest-ca363d3ef805a39fe4e821813b1efa53b2c9c805.tar.gz
minetest-ca363d3ef805a39fe4e821813b1efa53b2c9c805.tar.bz2
minetest-ca363d3ef805a39fe4e821813b1efa53b2c9c805.zip
Unify OpenGL ES support
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/guiEngine.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/guiEngine.cpp b/src/gui/guiEngine.cpp
index f0a8f40eb..241144a2a 100644
--- a/src/gui/guiEngine.cpp
+++ b/src/gui/guiEngine.cpp
@@ -39,9 +39,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "client/guiscalingfilter.h"
#include "irrlicht_changes/static_text.h"
-#ifdef __ANDROID__
+#if ENABLE_GLES
#include "client/tile.h"
-#include <GLES/gl.h>
#endif
@@ -78,7 +77,7 @@ video::ITexture *MenuTextureSource::getTexture(const std::string &name, u32 *id)
m_to_delete.insert(name);
-#ifdef __ANDROID__
+#if ENABLE_GLES
video::ITexture *retval = m_driver->findTexture(name.c_str());
if (retval)
return retval;