diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-03-28 11:35:13 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-04-08 16:23:23 -0700 |
| commit | eb92d6f0a8c930692de64bd41c5ddee403771023 (patch) | |
| tree | 72308538d75942206b415a0b9fc50b4cc7d09533 /Source/Core/VideoCommon/AsyncShaderCompiler.cpp | |
| parent | db0cd82326a13febb1104efbfd9af9ad5ac2c494 (diff) | |
Core::GetState: Avoid Global System Accessor
Diffstat (limited to 'Source/Core/VideoCommon/AsyncShaderCompiler.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/AsyncShaderCompiler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
