1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-06 18:40:23 +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.