mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Delete composite map layers on demand
This commit is contained in:
parent
4f387fdf1c
commit
172cb74763
1 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,8 @@ void CompositeMapRenderer::compile(CompositeMap &compositeMap, osg::RenderInfo &
|
|||
|
||||
++compositeMap.mCompiled;
|
||||
|
||||
compositeMap.mDrawables[i] = nullptr;
|
||||
|
||||
if (timeLeft)
|
||||
{
|
||||
*timeLeft -= timer.time_s();
|
||||
|
@ -131,6 +133,8 @@ void CompositeMapRenderer::compile(CompositeMap &compositeMap, osg::RenderInfo &
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (compositeMap.mCompiled == compositeMap.mDrawables.size())
|
||||
compositeMap.mDrawables = std::vector<osg::ref_ptr<osg::Drawable>>();
|
||||
|
||||
state.haveAppliedAttribute(osg::StateAttribute::VIEWPORT);
|
||||
|
||||
|
|
Loading…
Reference in a new issue