Skip to content

Commit 9f85862

Browse files
committedSep 22, 2021
Fix "Could not create ITexture, texture needs to have a non-empty name" warning
1 parent 2628316 commit 9f85862

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

Diff for: ‎src/client/tile.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,9 @@ void TextureSource::rebuildImagesAndTextures()
762762

763763
// Recreate textures
764764
for (TextureInfo &ti : m_textureinfo_cache) {
765+
if (ti.name.empty())
766+
continue; // Skip dummy entry
767+
765768
video::IImage *img = generateImage(ti.name);
766769
#if ENABLE_GLES
767770
img = Align2Npot2(img, driver);

0 commit comments

Comments
 (0)
Please sign in to comment.