forked from mirror/openmw-tes3mp
Fix composite map being compiled twice
This commit is contained in:
parent
683e625c6c
commit
8a6d909b22
1 changed files with 8 additions and 2 deletions
|
@ -121,8 +121,14 @@ void CompositeMapRenderer::addCompositeMap(CompositeMap* compositeMap, bool imme
|
||||||
void CompositeMapRenderer::setImmediate(CompositeMap* compositeMap)
|
void CompositeMapRenderer::setImmediate(CompositeMap* compositeMap)
|
||||||
{
|
{
|
||||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(mMutex);
|
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(mMutex);
|
||||||
mImmediateCompileSet.insert(compositeMap);
|
CompileSet::iterator found = mCompileSet.find(compositeMap);
|
||||||
mCompileSet.erase(compositeMap);
|
if (found == mCompileSet.end())
|
||||||
|
return;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mImmediateCompileSet.insert(compositeMap);
|
||||||
|
mCompileSet.erase(found);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CompositeMap::~CompositeMap()
|
CompositeMap::~CompositeMap()
|
||||||
|
|
Loading…
Reference in a new issue