diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas
index 19a9a1dd6cfa86817ebef5a42487a83b73197876..c1bdcf1769f3e7d437e0683d6aa9168762ee589a 100644 (file)
--- a/src/game/g_menu.pas
+++ b/src/game/g_menu.pas
var
menu: TGUIMenu;
i: Integer;
- ovs: Boolean;
begin
menu := TGUIMenu(g_GUI_GetWindow('OptionsVideoMenu').GetControl('mOptionsVideoMenu'));
else
gBPP := 32;
- ovs := gVSync;
gVSync := TGUISwitch(menu.GetControl('swVSync')).ItemIndex = 0;
- if (ovs <> gVSync) then
- sys_EnableVSync(gVSync);
gTextureFilter := TGUISwitch(menu.GetControl('swTextureFilter')).ItemIndex = 0;
glNPOTOverride := not (TGUISwitch(menu.GetControl('swLegacyNPOT')).ItemIndex = 0);