Skip to content

Commit

Permalink
Fix island example freeze when submitting work too quickly
Browse files Browse the repository at this point in the history
  • Loading branch information
vittorioromeo authored and eXpl0it3r committed Sep 26, 2024
1 parent d2ca038 commit a9c56da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/island/Island.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ void generateTerrain(sf::Vertex* buffer)
{
const std::lock_guard lock(workQueueMutex);

if (workQueue.empty())
if (pendingWorkCount == 0u)
break;
}

Expand Down

0 comments on commit a9c56da

Please sign in to comment.