fix bug from r4479 in windows with softrasterizer task freezing
This commit is contained in:
parent
fb60a9bcd8
commit
39997cfebf
|
@ -148,7 +148,11 @@ void* Task::Impl::finish()
|
||||||
if(spinlock)
|
if(spinlock)
|
||||||
while(!bWorkDone)
|
while(!bWorkDone)
|
||||||
Sleep(0);
|
Sleep(0);
|
||||||
else WaitForSingleObject(workDone,INFINITE);
|
else
|
||||||
|
{
|
||||||
|
if(!bWorkDone)
|
||||||
|
WaitForSingleObject(workDone,INFINITE);
|
||||||
|
}
|
||||||
return param;
|
return param;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue