mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 01:25:51 +00:00
Frontend: Fix some GPU settings not saving to ini
This commit is contained in:
parent
48e3683d20
commit
38d0f46063
|
@ -314,7 +314,7 @@ bool GPU_HW_D3D11::CreateStateObjects()
|
||||||
|
|
||||||
bool GPU_HW_D3D11::CompileShaders()
|
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);
|
GPU_HW_ShaderGen shadergen(m_host_display->GetRenderAPI(), m_resolution_scale, m_true_color);
|
||||||
|
|
||||||
m_screen_quad_vertex_shader = D3D11::ShaderCompiler::CompileAndCreateVertexShader(
|
m_screen_quad_vertex_shader = D3D11::ShaderCompiler::CompileAndCreateVertexShader(
|
||||||
|
|
|
@ -1116,7 +1116,10 @@ void SDLHostInterface::DrawSettingsWindow()
|
||||||
if (DrawSettingsSectionHeader("Display Output"))
|
if (DrawSettingsSectionHeader("Display Output"))
|
||||||
{
|
{
|
||||||
if (ImGui::Checkbox("Fullscreen", &m_settings.display_fullscreen))
|
if (ImGui::Checkbox("Fullscreen", &m_settings.display_fullscreen))
|
||||||
|
{
|
||||||
UpdateFullscreen();
|
UpdateFullscreen();
|
||||||
|
settings_changed = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (ImGui::Checkbox("Linear Filtering", &m_settings.display_linear_filtering))
|
if (ImGui::Checkbox("Linear Filtering", &m_settings.display_linear_filtering))
|
||||||
{
|
{
|
||||||
|
@ -1176,7 +1179,7 @@ void SDLHostInterface::DrawSettingsWindow()
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
|
||||||
if (settings_changed)
|
if (settings_changed || gpu_settings_changed)
|
||||||
SaveSettings();
|
SaveSettings();
|
||||||
|
|
||||||
if (gpu_settings_changed && m_system)
|
if (gpu_settings_changed && m_system)
|
||||||
|
|
Loading…
Reference in a new issue