Commit 29583e0a authored by salix5's avatar salix5 Committed by GitHub

Return tUnknownFit in GetBigPicture (#2974)

parent 6ffa4564
......@@ -282,14 +282,14 @@ irr::video::ITexture* ImageManager::GetTexture(int code, bool fit) {
* @return Texture pointer. Should NOT be removed nor dropped. */
irr::video::ITexture* ImageManager::GetBigPicture(int code, float zoom) {
if(code == 0)
return tUnknown;
return tUnknownFit;
if(tBigPicture != nullptr) {
driver->removeTexture(tBigPicture);
tBigPicture = nullptr;
}
irr::video::IImage* img = GetImage(code);
if(img == nullptr) {
return tUnknown;
return tUnknownFit;
}
char name[256];
mysnprintf(name, "pics/%d/big", code);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment