forked from mirror/openmw-tes3mp
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;
|
||||
|
||||
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 a new issue