diff --git a/src/graphics/sp/sp_texture.cpp b/src/graphics/sp/sp_texture.cpp index 488a3696a..9364d0ae1 100644 --- a/src/graphics/sp/sp_texture.cpp +++ b/src/graphics/sp/sp_texture.cpp @@ -444,6 +444,8 @@ bool SPTexture::threadedLoad() std::shared_ptr image = getTextureImage(); if (!image) { + m_width.store(2); + m_height.store(2); return true; } std::shared_ptr mask = getMask(image->getDimension()); @@ -642,12 +644,6 @@ void SPTexture::applyMask(video::IImage* texture, video::IImage* mask) } } // applyMask -// ---------------------------------------------------------------------------- -bool SPTexture::initialized() const -{ - return m_width.load() != 0 && m_height.load() != 0; -} // initialized - // ---------------------------------------------------------------------------- void SPTexture::generateQuickMipmap(std::shared_ptr first_image, const std::vector