We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bacde43 commit baa8b46Copy full SHA for baa8b46
materialsystem/cmaterialsystem.cpp
@@ -4964,9 +4964,9 @@ MaterialLock_t CMaterialSystem::Lock()
4964
#if 1 // Rick's optimization: not sure this is needed anymore
4965
if ( pCurContext != &m_HardwareRenderContext && m_pActiveAsyncJob )
4966
{
4967
- if (!m_pActiveAsyncJob->IsFinished())
+ while (!m_pActiveAsyncJob->IsFinished())
4968
4969
- m_pActiveAsyncJob->WaitForFinish();
+ m_pActiveAsyncJob->WaitForFinish(0);
4970
}
4971
// threadsafety note: not releasing or nulling pointer.
4972
0 commit comments