bencmark code fix.

This commit is contained in:
rachytski 2011-08-18 10:00:00 +03:00 committed by Alex Zolotarev
parent 183a329027
commit a50dac38bd

View file

@ -115,7 +115,8 @@ ThreadedList<shared_ptr<RenderQueueRoutine::Command > > & RenderQueue::RenderCom
void RenderQueue::WaitForEmptyAndFinished()
{
threads::ConditionGuard g(m_emptyAndFinished);
m_emptyAndFinished.Wait();
if (m_activeCommands != 0)
m_emptyAndFinished.Wait();
}
void RenderQueue::FinishCommand()