Fix crash when incremental compile operation is not used

pull/2192/head
bzzt 6 years ago committed by Capostrophic
parent bcbee08a1b
commit aecbc2f01c

@ -729,6 +729,7 @@ namespace Resource
void SceneManager::reportStats(unsigned int frameNumber, osg::Stats *stats) const
{
if (mIncrementalCompileOperation)
{
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(*mIncrementalCompileOperation->getToCompiledMutex());
stats->setAttribute(frameNumber, "Compiling", mIncrementalCompileOperation->getToCompile().size());

Loading…
Cancel
Save