summaryrefslogtreecommitdiff
path: root/src/client/tile.cpp
diff options
context:
space:
mode:
authorparadust7 <102263465+paradust7@users.noreply.github.com>2022-04-16 09:50:59 -0700
committerGitHub <noreply@github.com>2022-04-16 18:50:59 +0200
commit7cea688a1c463c5e8caa28bbdb588a6b497a5d7d (patch)
tree30601cf0c655904dd98d316d6bbceff28d896e52 /src/client/tile.cpp
parent062dd8dabc50e01468a59bb9d1d8774e1983cb68 (diff)
downloadminetest-7cea688a1c463c5e8caa28bbdb588a6b497a5d7d.tar.gz
minetest-7cea688a1c463c5e8caa28bbdb588a6b497a5d7d.tar.bz2
minetest-7cea688a1c463c5e8caa28bbdb588a6b497a5d7d.zip
Fix '[combine' when EVDF_TEXTURE_NPOT is disabled. (#12187)
Stop scaling images to POT immediately when loaded. The 'combine' modifier hardcodes X and Y coordinates, and so behaves incorrectly if applied to a scaled image. Images emitted by generateImage() are already scaled to POT before being used as a texture, so nothing should break.
Diffstat (limited to 'src/client/tile.cpp')
-rw-r--r--src/client/tile.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client/tile.cpp b/src/client/tile.cpp
index da03ff5c8..aa78c50f0 100644
--- a/src/client/tile.cpp
+++ b/src/client/tile.cpp
@@ -1109,9 +1109,6 @@ bool TextureSource::generateImagePart(std::string part_of_name,
// Stuff starting with [ are special commands
if (part_of_name.empty() || part_of_name[0] != '[') {
video::IImage *image = m_sourcecache.getOrLoad(part_of_name);
-#if ENABLE_GLES
- image = Align2Npot2(image, driver);
-#endif
if (image == NULL) {
if (!part_of_name.empty()) {