mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 12:09:41 +00:00
Make sure fog texture is loaded before trying to convertToImage
This commit is contained in:
parent
6cb9382bf0
commit
cd8287da16
1 changed files with 2 additions and 0 deletions
|
@ -98,6 +98,7 @@ void LocalMap::saveFogOfWar(MWWorld::CellStore* cell)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Ogre::Image image;
|
Ogre::Image image;
|
||||||
|
tex->load();
|
||||||
tex->convertToImage(image);
|
tex->convertToImage(image);
|
||||||
|
|
||||||
Ogre::DataStreamPtr encoded = image.encode("tga");
|
Ogre::DataStreamPtr encoded = image.encode("tga");
|
||||||
|
@ -137,6 +138,7 @@ void LocalMap::saveFogOfWar(MWWorld::CellStore* cell)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Ogre::Image image;
|
Ogre::Image image;
|
||||||
|
tex->load();
|
||||||
tex->convertToImage(image);
|
tex->convertToImage(image);
|
||||||
|
|
||||||
fog->mFogTextures.push_back(ESM::FogTexture());
|
fog->mFogTextures.push_back(ESM::FogTexture());
|
||||||
|
|
Loading…
Reference in a new issue