From 922003ba5080e796cbbb09a18f534f9ac3d7fa04 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 8 Jul 2020 01:57:43 +1000 Subject: [PATCH] libretro: Ignore renderer changes RetroArch does not support hot swapping renderers. --- .../libretro_host_interface.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/duckstation-libretro/libretro_host_interface.cpp b/src/duckstation-libretro/libretro_host_interface.cpp index a0b465354..802a783c8 100644 --- a/src/duckstation-libretro/libretro_host_interface.cpp +++ b/src/duckstation-libretro/libretro_host_interface.cpp @@ -534,16 +534,9 @@ void LibretroHostInterface::UpdateSettings() if (m_settings.gpu_renderer != old_settings.gpu_renderer) { - ReportFormattedMessage("Switching to %s renderer...", Settings::GetRendererDisplayName(m_settings.gpu_renderer)); - - if (m_using_hardware_renderer) - SwitchToSoftwareRenderer(); - - if (m_settings.gpu_renderer != GPURenderer::Software) - RequestHardwareRendererContext(); - - // Don't let the base class recreate the GPU or system. - old_settings.gpu_renderer = m_settings.gpu_renderer; + ReportFormattedMessage("Switch to %s renderer pending, please restart the core to apply.", + Settings::GetRendererDisplayName(m_settings.gpu_renderer)); + m_settings.gpu_renderer = old_settings.gpu_renderer; } CheckForSettingsChanges(old_settings);