diff options
author | sfan5 <sfan5@live.de> | 2021-09-22 18:35:40 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-09-22 18:43:40 +0200 |
commit | 9f85862b7c0d2fd6fe964699bbeabc824026e848 (patch) | |
tree | 588492bd8e1cd4db8427807ec09371b33222d2a5 /src/client/tile.cpp | |
parent | 2628316842e9c3fc1c54c6d57505c7851fa83490 (diff) | |
download | minetest-9f85862b7c0d2fd6fe964699bbeabc824026e848.tar.gz minetest-9f85862b7c0d2fd6fe964699bbeabc824026e848.tar.bz2 minetest-9f85862b7c0d2fd6fe964699bbeabc824026e848.zip |
Fix "Could not create ITexture, texture needs to have a non-empty name" warning
Diffstat (limited to 'src/client/tile.cpp')
-rw-r--r-- | src/client/tile.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/tile.cpp b/src/client/tile.cpp index a31e3aca1..091e546c6 100644 --- a/src/client/tile.cpp +++ b/src/client/tile.cpp @@ -762,6 +762,9 @@ void TextureSource::rebuildImagesAndTextures() // Recreate textures for (TextureInfo &ti : m_textureinfo_cache) { + if (ti.name.empty()) + continue; // Skip dummy entry + video::IImage *img = generateImage(ti.name); #if ENABLE_GLES img = Align2Npot2(img, driver); |