Fixing mesh rendering

This commit is contained in:
Dynamitos
2023-12-24 21:49:49 +01:00
parent 95dcfda1cd
commit 1ae8d68838
8 changed files with 51 additions and 33 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ void ThreadPool::runAndWait(List<std::function<void()>> functions)
void ThreadPool::work()
{
while (true)
while (running)
{
std::unique_lock l(taskLock);
while(currentTask.functions.empty())