]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Fix "Could not create ITexture, texture needs to have a non-empty name" warning
authorsfan5 <sfan5@live.de>
Wed, 22 Sep 2021 16:35:40 +0000 (18:35 +0200)
committersfan5 <sfan5@live.de>
Wed, 22 Sep 2021 16:43:40 +0000 (18:43 +0200)
src/client/tile.cpp

index a31e3aca16b4783be167bff6a1cf02088d68fc84..091e546c69ef275f78758f6f388bdd1a30d3dad9 100644 (file)
@@ -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);