From debfe716e88c2aee5883b6b2ced3cbcffe0b2461 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 19 Feb 2024 21:10:31 +0000 Subject: [PATCH] asyncResourceGatherer: reset pending flag on process fixes #7 --- src/renderer/AsyncResourceGatherer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/AsyncResourceGatherer.cpp b/src/renderer/AsyncResourceGatherer.cpp index 7e42528..905f50d 100644 --- a/src/renderer/AsyncResourceGatherer.cpp +++ b/src/renderer/AsyncResourceGatherer.cpp @@ -200,6 +200,8 @@ void CAsyncResourceGatherer::asyncAssetSpinLock() { asyncLoopState.requestMutex.lock(); + asyncLoopState.pending = false; + if (asyncLoopState.requests.empty()) { asyncLoopState.requestMutex.unlock(); continue;