diff --git a/src/swrenderer/drawers/r_thread.cpp b/src/swrenderer/drawers/r_thread.cpp index d8b3b3389..50e56a464 100644 --- a/src/swrenderer/drawers/r_thread.cpp +++ b/src/swrenderer/drawers/r_thread.cpp @@ -59,11 +59,11 @@ void DrawerThreads::Execute(DrawerCommandQueuePtr commands) return; auto queue = Instance(); - queue->StartThreads(); // Add to queue and awaken worker threads std::unique_lock start_lock(queue->start_mutex); std::unique_lock end_lock(queue->end_mutex); + queue->StartThreads(); queue->active_commands.push_back(commands); queue->tasks_left += queue->threads.size(); end_lock.unlock();