From 9d736e8b8baeeacad9cfa94edd18adfcaf000029 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 5 Mar 2023 15:10:44 +0100 Subject: Drop ENABLE_GLES option ENABLE_GLES predates forking Irrlicht. Its primary use was to distinguish Irrlicht-ogles from upstream version as Minetest could be compiled with either. That's not necessary anymore and gets in the way sometimes. --- src/client/tile.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/client/tile.cpp') diff --git a/src/client/tile.cpp b/src/client/tile.cpp index 14fc316e7..8421465c4 100644 --- a/src/client/tile.cpp +++ b/src/client/tile.cpp @@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include +#include #include "util/string.h" #include "util/container.h" #include "util/thread.h" @@ -617,9 +618,7 @@ u32 TextureSource::generateTexture(const std::string &name) video::ITexture *tex = NULL; if (img != NULL) { -#if ENABLE_GLES img = Align2Npot2(img, driver); -#endif // Create texture from resulting image tex = driver->addTexture(name.c_str(), img); guiScalingCache(io::path(name.c_str()), driver, img); @@ -819,9 +818,7 @@ void TextureSource::rebuildTexture(video::IVideoDriver *driver, TextureInfo &ti) // shouldn't really need to be done, but can't hurt std::set source_image_names; video::IImage *img = generateImage(ti.name, source_image_names); -#if ENABLE_GLES img = Align2Npot2(img, driver); -#endif // Create texture from resulting image video::ITexture *t = NULL; if (img) { @@ -1055,8 +1052,6 @@ video::IImage* TextureSource::generateImage(const std::string &name, std::set