1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

Make sure fog of war texture is loaded before accessing its buffer

This commit is contained in:
scrawl 2014-07-31 01:58:33 +02:00
parent 0c1c468f70
commit 89af49f669

View file

@ -581,6 +581,8 @@ void LocalMap::updatePlayer (const Ogre::Vector3& position, const Ogre::Quaterni
}
}
tex->load();
// copy to the texture
// NOTE: Could be optimized later. We actually only need to update the region that changed.
// Not a big deal at the moment, the FoW is only 32x32 anyway.