From 89af49f6697936b23bac7327bff121a8afae65c2 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 31 Jul 2014 01:58:33 +0200 Subject: [PATCH] Make sure fog of war texture is loaded before accessing its buffer --- apps/openmw/mwrender/localmap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwrender/localmap.cpp b/apps/openmw/mwrender/localmap.cpp index 271cbbfe1c..1b0e27fdd1 100644 --- a/apps/openmw/mwrender/localmap.cpp +++ b/apps/openmw/mwrender/localmap.cpp @@ -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.