Frontend: Fix some GPU settings not saving to ini

This commit is contained in:
Connor McLaughlin 2019-11-17 22:10:55 +10:00
parent 48e3683d20
commit 38d0f46063
2 changed files with 5 additions and 2 deletions

View file

@ -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(

View file

@ -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)