GPU/HW: Make settings update slightly safer

This commit is contained in:
Connor McLaughlin
2020-08-12 02:27:07 +10:00
parent ba5458c1c3
commit d1ee6c0da7
5 changed files with 44 additions and 16 deletions

View File

@ -499,9 +499,7 @@ void HostInterface::CheckForSettingsChanges(const Settings& old_settings)
g_settings.display_aspect_ratio != old_settings.display_aspect_ratio ||
g_settings.gpu_pgxp_enable != old_settings.gpu_pgxp_enable)
{
g_gpu->RestoreGraphicsAPIState();
g_gpu->UpdateSettings();
g_gpu->ResetGraphicsAPIState();
}
if (g_settings.gpu_pgxp_enable != old_settings.gpu_pgxp_enable ||