summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AsyncShaderCompiler.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-04-09 04:14:39 +0200
committerGitHub <noreply@github.com>2024-04-09 04:14:39 +0200
commit629935ef1164103982f29a129ee6e007eb55e322 (patch)
tree72308538d75942206b415a0b9fc50b4cc7d09533 /Source/Core/VideoCommon/AsyncShaderCompiler.cpp
parentdb0cd82326a13febb1104efbfd9af9ad5ac2c494 (diff)
parenteb92d6f0a8c930692de64bd41c5ddee403771023 (diff)
Merge pull request #12669 from mitaclaw/core-global-system-3
Core::GetState: Avoid Global System Accessor
Diffstat (limited to 'Source/Core/VideoCommon/AsyncShaderCompiler.cpp')
-rw-r--r--Source/Core/VideoCommon/AsyncShaderCompiler.cpp3
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;