mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix "Could not create ITexture, texture needs to have a non-empty name" warning
This commit is contained in:
parent
2628316842
commit
9f85862b7c
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue