From 9f85862b7c0d2fd6fe964699bbeabc824026e848 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 22 Sep 2021 18:35:40 +0200 Subject: Fix "Could not create ITexture, texture needs to have a non-empty name" warning --- src/client/tile.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); -- cgit v1.2.3