mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-09 12:57:19 +00:00
System: Fix black screen when changing options while paused
This commit is contained in:
parent
953bd0919b
commit
5ae32d3c70
@ -4491,7 +4491,11 @@ void System::CheckForSettingsChanges(const Settings& old_settings)
|
|||||||
ClearMemorySaveStates(true, use_existing_textures);
|
ClearMemorySaveStates(true, use_existing_textures);
|
||||||
|
|
||||||
if (IsPaused())
|
if (IsPaused())
|
||||||
|
{
|
||||||
|
// resolution change needs display updated
|
||||||
|
g_gpu.UpdateDisplay(false);
|
||||||
GPUThread::PresentCurrentFrame();
|
GPUThread::PresentCurrentFrame();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (const bool device_settings_changed = g_settings.AreGPUDeviceSettingsChanged(old_settings);
|
else if (const bool device_settings_changed = g_settings.AreGPUDeviceSettingsChanged(old_settings);
|
||||||
device_settings_changed || g_settings.display_show_fps != old_settings.display_show_fps ||
|
device_settings_changed || g_settings.display_show_fps != old_settings.display_show_fps ||
|
||||||
@ -4519,10 +4523,12 @@ void System::CheckForSettingsChanges(const Settings& old_settings)
|
|||||||
GPUThread::UpdateSettings(true, true, g_settings.gpu_use_thread != old_settings.gpu_use_thread);
|
GPUThread::UpdateSettings(true, true, g_settings.gpu_use_thread != old_settings.gpu_use_thread);
|
||||||
ClearMemorySaveStates(true, false);
|
ClearMemorySaveStates(true, false);
|
||||||
|
|
||||||
// and display the current frame on the new device
|
|
||||||
g_gpu.UpdateDisplay(false);
|
|
||||||
if (IsPaused())
|
if (IsPaused())
|
||||||
|
{
|
||||||
|
// and display the current frame on the new device
|
||||||
|
g_gpu.UpdateDisplay(false);
|
||||||
GPUThread::PresentCurrentFrame();
|
GPUThread::PresentCurrentFrame();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user