mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
D3D: Move exclusive mode switching to UI thread.
This prevents deadlocks when switching to exclusive mode. And it also allows the CPU thread to block until we've completed the switch.
This commit is contained in:
@ -787,12 +787,6 @@ void CFrame::DoStop()
|
||||
// waiting on inputs
|
||||
bool should_pause = !NetPlayDialog::GetNetPlayClient();
|
||||
|
||||
// If exclusive fullscreen is not enabled then we can pause the emulation
|
||||
// before we've exited fullscreen. If not then we need to exit fullscreen first.
|
||||
should_pause =
|
||||
should_pause && (!RendererIsFullscreen() || !g_Config.ExclusiveFullscreenEnabled() ||
|
||||
SConfig::GetInstance().bRenderToMain);
|
||||
|
||||
if (should_pause)
|
||||
{
|
||||
Core::SetState(Core::CORE_PAUSE);
|
||||
|
Reference in New Issue
Block a user