Fix VSync control being enabled in the wrong place

This commit is contained in:
FireNX70 2024-06-18 07:51:55 +02:00
parent 626d2379bc
commit c6759c5fa6
1 changed files with 1 additions and 2 deletions

View File

@ -151,6 +151,7 @@ void VideoSettingsDialog::onChange3DRenderer(int renderer)
auto& cfg = emuInstance->getGlobalConfig(); auto& cfg = emuInstance->getGlobalConfig();
cfg.SetInt("3D.Renderer", renderer); cfg.SetInt("3D.Renderer", renderer);
setVsyncControlEnable(UsesGL());
setEnabled(); setEnabled();
emit updateVideoSettings(old_gl != UsesGL()); emit updateVideoSettings(old_gl != UsesGL());
@ -203,8 +204,6 @@ void VideoSettingsDialog::on_cbxGLResolution_currentIndexChanged(int idx)
auto& cfg = emuInstance->getGlobalConfig(); auto& cfg = emuInstance->getGlobalConfig();
cfg.SetInt("3D.GL.ScaleFactor", idx+1); cfg.SetInt("3D.GL.ScaleFactor", idx+1);
setVsyncControlEnable(UsesGL());
emit updateVideoSettings(false); emit updateVideoSettings(false);
} }