Core::IsRunning: Avoid Global System Accessor

This commit is contained in:
mitaclaw committed 2024-05-01 08:54:17 -07:00
1 parent b71fdef356
commit 0df401b164
25 files changed
+90 -74

No files matched your search

+1 -1
View File
@@ -299,7 +299,7 @@ void VideoBackendBase::PopulateBackendInfoFromUI(const WindowSystemInfo& wsi)
{
// If the core is running, the backend info will have been populated already.
// If we did it here, the UI thread can race with the with the GPU thread.
if (!Core::IsRunning())
if (!Core::IsRunning(Core::System::GetInstance()))
PopulateBackendInfo(wsi);
}