From 1183fb3d2d55b004a2918a7c69dd8bbaf995c650 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Wed, 23 Jun 2021 23:52:26 +0200 Subject: [PATCH] VideoCommon/Fifo: Move SConfig::GetInstance() outside the GPU loop. --- Source/Core/VideoCommon/Fifo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp index cfc126cfc1..743e01afaf 100644 --- a/Source/Core/VideoCommon/Fifo.cpp +++ b/Source/Core/VideoCommon/Fifo.cpp @@ -297,10 +297,10 @@ void RunGpuLoop() AsyncRequests::GetInstance()->SetEnable(true); AsyncRequests::GetInstance()->SetPassthrough(false); - s_gpu_mainloop.Run( - [] { - const SConfig& param = SConfig::GetInstance(); + const SConfig& param = SConfig::GetInstance(); + s_gpu_mainloop.Run( + [¶m] { // Run events from the CPU thread. AsyncRequests::GetInstance()->PullEvents();