mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 03:54:40 +00:00
Make sure fog texture is loaded before trying to convertToImage
This commit is contained in:
parent
6cb9382bf0
commit
cd8287da16
@ -98,6 +98,7 @@ void LocalMap::saveFogOfWar(MWWorld::CellStore* cell)
|
||||
return;
|
||||
|
||||
Ogre::Image image;
|
||||
tex->load();
|
||||
tex->convertToImage(image);
|
||||
|
||||
Ogre::DataStreamPtr encoded = image.encode("tga");
|
||||
@ -137,6 +138,7 @@ void LocalMap::saveFogOfWar(MWWorld::CellStore* cell)
|
||||
return;
|
||||
|
||||
Ogre::Image image;
|
||||
tex->load();
|
||||
tex->convertToImage(image);
|
||||
|
||||
fog->mFogTextures.push_back(ESM::FogTexture());
|
||||
|
Loading…
Reference in New Issue
Block a user