summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Fifo.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2021-06-23 23:52:26 +0200
committerAdmiral H. Curtiss <pikachu025@gmail.com>2021-06-23 23:52:26 +0200
commit1183fb3d2d55b004a2918a7c69dd8bbaf995c650 (patch)
treedfe18ee753b023267732de5319fbfb567970b3ee /Source/Core/VideoCommon/Fifo.cpp
parentbe2ec728e4cd642e22c8558dec7d75ca254a19b2 (diff)
VideoCommon/Fifo: Move SConfig::GetInstance() outside the GPU loop.
Diffstat (limited to 'Source/Core/VideoCommon/Fifo.cpp')
-rw-r--r--Source/Core/VideoCommon/Fifo.cpp6
1 files 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(
+ [&param] {
// Run events from the CPU thread.
AsyncRequests::GetInstance()->PullEvents();