Skip to content

Commit

Permalink
Fix "Could not create ITexture, texture needs to have a non-empty nam…
Browse files Browse the repository at this point in the history
…e" warning
  • Loading branch information
sfan5 committed Sep 22, 2021
1 parent 2628316 commit 9f85862
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9f85862

Please sign in to comment.