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

deque
scrawl 11 years ago
parent 0c1c468f70
commit 89af49f669

@ -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.

Loading…
Cancel
Save