Merge pull request #12918 from JosJuice/revert-revert-audit-get-state

Partially revert "Revert "Audit uses of IsRunning and GetState""
This commit is contained in:
JMC47
2024-10-06 11:26:06 -04:00
committed by GitHub
33 changed files with 143 additions and 114 deletions

View File

@ -286,7 +286,7 @@ void VideoBackendBase::PopulateBackendInfo(const WindowSystemInfo& wsi)
{
// 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)
if (!Core::IsUninitialized(Core::System::GetInstance()))
return;
g_Config.Refresh();