Fix "Could not create ITexture, texture needs to have a non-empty name" warning
This commit is contained in:
parent
d6b01ab8ef
commit
667f1f2a2e
@ -773,6 +773,9 @@ void TextureSource::rebuildImagesAndTextures()
|
|||||||
|
|
||||||
// Recreate textures
|
// Recreate textures
|
||||||
for (TextureInfo &ti : m_textureinfo_cache) {
|
for (TextureInfo &ti : m_textureinfo_cache) {
|
||||||
|
if (ti.name.empty())
|
||||||
|
continue; // Skip dummy entry
|
||||||
|
|
||||||
video::IImage *img = generateImage(ti.name);
|
video::IImage *img = generateImage(ti.name);
|
||||||
#if ENABLE_GLES
|
#if ENABLE_GLES
|
||||||
img = Align2Npot2(img, driver);
|
img = Align2Npot2(img, driver);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user