mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fix island
example freeze when submitting work too quickly
This commit is contained in:
parent
d2ca038e2a
commit
a9c56da99e
@ -398,7 +398,7 @@ void generateTerrain(sf::Vertex* buffer)
|
|||||||
{
|
{
|
||||||
const std::lock_guard lock(workQueueMutex);
|
const std::lock_guard lock(workQueueMutex);
|
||||||
|
|
||||||
if (workQueue.empty())
|
if (pendingWorkCount == 0u)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user