fix bug from r4479 in windows with softrasterizer task freezing

This commit is contained in:
zeromus 2013-01-16 09:24:53 +00:00
parent fb60a9bcd8
commit 39997cfebf
1 changed files with 5 additions and 1 deletions

View File

@ -148,7 +148,11 @@ void* Task::Impl::finish()
if(spinlock)
while(!bWorkDone)
Sleep(0);
else WaitForSingleObject(workDone,INFINITE);
else
{
if(!bWorkDone)
WaitForSingleObject(workDone,INFINITE);
}
return param;
}