From f21cb25426b9b86232139c4617b27bf89694bc30 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 28 Feb 2020 16:59:53 +1000 Subject: [PATCH] HostInterface: Recreate system on GPU debug device toggle too --- src/core/host_interface.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index feb359536..9da8d0dfb 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -815,6 +815,7 @@ void HostInterface::UpdateSettings(const std::function& apply_callback) const bool old_gpu_true_color = m_settings.gpu_true_color; const bool old_gpu_texture_filtering = m_settings.gpu_texture_filtering; const bool old_gpu_force_progressive_scan = m_settings.gpu_force_progressive_scan; + const bool old_gpu_debug_device = m_settings.gpu_use_debug_device; const bool old_vsync_enabled = m_settings.video_sync_enabled; const bool old_audio_sync_enabled = m_settings.audio_sync_enabled; const bool old_speed_limiter_enabled = m_settings.speed_limiter_enabled; @@ -826,9 +827,10 @@ void HostInterface::UpdateSettings(const std::function& apply_callback) if (m_system) { - if (m_settings.gpu_renderer != old_gpu_renderer) + if (m_settings.gpu_renderer != old_gpu_renderer || m_settings.gpu_use_debug_device != old_gpu_debug_device) { - ReportFormattedMessage("Switching to %s GPU renderer.", Settings::GetRendererName(m_settings.gpu_renderer)); + ReportFormattedMessage("Switching to %s%s GPU renderer.", Settings::GetRendererName(m_settings.gpu_renderer), + m_settings.gpu_use_debug_device ? " (debug)" : ""); RecreateSystem(); }