summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoBackendBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoBackendBase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp
index ab5e6c9fe6..8124c2eeb3 100644
--- a/Source/Core/VideoCommon/VideoBackendBase.cpp
+++ b/Source/Core/VideoCommon/VideoBackendBase.cpp
@@ -284,9 +284,9 @@ void VideoBackendBase::ActivateBackend(const std::string& name)
void VideoBackendBase::PopulateBackendInfo(const WindowSystemInfo& wsi)
{
- // If the core is running, the backend info will have been populated already. If we did it here,
- // the UI thread could race with the GPU thread.
- if (Core::IsRunningOrStarting(Core::System::GetInstance()))
+ // If the core has been initialized, the backend info will have been populated already. Doing it
+ // again would be unnecessary and could cause the UI thread to race with the GPU thread.
+ if (Core::GetState(Core::System::GetInstance()) != Core::State::Uninitialized)
return;
g_Config.Refresh();