From 38d0f46063a09ebcb244f05debd73553920f5892 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 17 Nov 2019 22:10:55 +1000 Subject: [PATCH] Frontend: Fix some GPU settings not saving to ini --- src/core/gpu_hw_d3d11.cpp | 2 +- src/duckstation/sdl_host_interface.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/gpu_hw_d3d11.cpp b/src/core/gpu_hw_d3d11.cpp index 1ae4c155d..0e11057bd 100644 --- a/src/core/gpu_hw_d3d11.cpp +++ b/src/core/gpu_hw_d3d11.cpp @@ -314,7 +314,7 @@ bool GPU_HW_D3D11::CreateStateObjects() bool GPU_HW_D3D11::CompileShaders() { - const bool debug = false; + const bool debug = true; GPU_HW_ShaderGen shadergen(m_host_display->GetRenderAPI(), m_resolution_scale, m_true_color); m_screen_quad_vertex_shader = D3D11::ShaderCompiler::CompileAndCreateVertexShader( diff --git a/src/duckstation/sdl_host_interface.cpp b/src/duckstation/sdl_host_interface.cpp index 41fccb1f1..b6ede7d92 100644 --- a/src/duckstation/sdl_host_interface.cpp +++ b/src/duckstation/sdl_host_interface.cpp @@ -1116,7 +1116,10 @@ void SDLHostInterface::DrawSettingsWindow() if (DrawSettingsSectionHeader("Display Output")) { if (ImGui::Checkbox("Fullscreen", &m_settings.display_fullscreen)) + { UpdateFullscreen(); + settings_changed = true; + } if (ImGui::Checkbox("Linear Filtering", &m_settings.display_linear_filtering)) { @@ -1176,7 +1179,7 @@ void SDLHostInterface::DrawSettingsWindow() ImGui::End(); - if (settings_changed) + if (settings_changed || gpu_settings_changed) SaveSettings(); if (gpu_settings_changed && m_system)