mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-17 02:42:45 +00:00
Change order of operations in SceneManager::updateCache to allow deleting of StateSets that just got unreferenced by the scene
This commit is contained in:
parent
eef63a880a
commit
9d72d9f0c9
@ -689,13 +689,13 @@ namespace Resource
|
||||
|
||||
void SceneManager::updateCache(double referenceTime)
|
||||
{
|
||||
mSharedStateMutex.lock();
|
||||
mSharedStateManager->prune();
|
||||
mSharedStateMutex.unlock();
|
||||
|
||||
ResourceManager::updateCache(referenceTime);
|
||||
|
||||
mInstanceCache->removeUnreferencedObjectsInCache();
|
||||
|
||||
mSharedStateMutex.lock();
|
||||
mSharedStateManager->prune();
|
||||
mSharedStateMutex.unlock();
|
||||
}
|
||||
|
||||
void SceneManager::reportStats(unsigned int frameNumber, osg::Stats *stats)
|
||||
|
Loading…
x
Reference in New Issue
Block a user