From eb92d6f0a8c930692de64bd41c5ddee403771023 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:35:13 -0700 Subject: Core::GetState: Avoid Global System Accessor --- Source/Core/VideoCommon/AsyncShaderCompiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/AsyncShaderCompiler.cpp') diff --git a/Source/Core/VideoCommon/AsyncShaderCompiler.cpp b/Source/Core/VideoCommon/AsyncShaderCompiler.cpp index 7e6f960d7f..ca59ee6330 100644 --- a/Source/Core/VideoCommon/AsyncShaderCompiler.cpp +++ b/Source/Core/VideoCommon/AsyncShaderCompiler.cpp @@ -10,6 +10,7 @@ #include "Common/Thread.h" #include "Core/Core.h" +#include "Core/System.h" namespace VideoCommon { @@ -96,7 +97,7 @@ bool AsyncShaderCompiler::WaitUntilCompletion( // Update progress while the compiles complete. for (;;) { - if (Core::GetState() == Core::State::Stopping) + if (Core::GetState(Core::System::GetInstance()) == Core::State::Stopping) return false; size_t remaining_items; -- cgit v1.2.3