mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 15:45:42 +00:00
Android: Defer renderer changes to restart
Apparently it doesn't like changing surface types.
This commit is contained in:
parent
be3dd3e06f
commit
80a377d45a
|
@ -534,6 +534,16 @@ void AndroidHostInterface::ApplySettings(bool display_osd_messages)
|
|||
Settings old_settings = std::move(g_settings);
|
||||
CommonHostInterface::LoadSettings(m_settings_interface);
|
||||
CommonHostInterface::FixIncompatibleSettings(display_osd_messages);
|
||||
|
||||
// Defer renderer changes, the app really doesn't like it.
|
||||
if (System::IsValid() && g_settings.gpu_renderer != old_settings.gpu_renderer)
|
||||
{
|
||||
AddFormattedOSDMessage(5.0f,
|
||||
TranslateString("OSDMessage", "Change to %s GPU renderer will take effect on restart."),
|
||||
Settings::GetRendererName(g_settings.gpu_renderer));
|
||||
g_settings.gpu_renderer = old_settings.gpu_renderer;
|
||||
}
|
||||
|
||||
CheckForSettingsChanges(old_settings);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue