mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
Core/VideoCommon: Revert change from #12828
This causes Dual Core to lock up during the boot sequence, because it tries to wait for a not-yet-running GPU thread. Fixes https://bugs.dolphin-emu.org/issues/13559
This commit is contained in:
parent
9b33b777cf
commit
ce2f4101f3
@ -66,12 +66,15 @@ void VideoConfig::Refresh()
|
|||||||
CPUThreadConfigCallback::AddConfigChangedCallback([]() {
|
CPUThreadConfigCallback::AddConfigChangedCallback([]() {
|
||||||
auto& system = Core::System::GetInstance();
|
auto& system = Core::System::GetInstance();
|
||||||
|
|
||||||
system.GetFifo().PauseAndLock(true, false);
|
const bool lock_gpu_thread = Core::IsRunning(system);
|
||||||
|
if (lock_gpu_thread)
|
||||||
|
system.GetFifo().PauseAndLock(true, false);
|
||||||
|
|
||||||
g_Config.Refresh();
|
g_Config.Refresh();
|
||||||
g_Config.VerifyValidity();
|
g_Config.VerifyValidity();
|
||||||
|
|
||||||
system.GetFifo().PauseAndLock(false, true);
|
if (lock_gpu_thread)
|
||||||
|
system.GetFifo().PauseAndLock(false, true);
|
||||||
});
|
});
|
||||||
s_has_registered_callback = true;
|
s_has_registered_callback = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user