X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_menu.pas;h=ccc0a556af4ec8cb8c1ec0c6cb46605777fe850f;hp=2d83a526d2b53d96de91f4bcc2f3fb39169d4ec0;hb=7f50d798c193f8a57a3c736c81615ef932915e9a;hpb=4c41701fe770ee9d771479868651d973f9402470 diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas index 2d83a52..ccc0a55 100644 --- a/src/game/g_menu.pas +++ b/src/game/g_menu.pas @@ -122,7 +122,7 @@ begin sys_EnableVSync(gVSync); gTextureFilter := TGUISwitch(menu.GetControl('swTextureFilter')).ItemIndex = 0; - glLegacyNPOT := not (TGUISwitch(menu.GetControl('swLegacyNPOT')).ItemIndex = 0); + glNPOTOverride := not (TGUISwitch(menu.GetControl('swLegacyNPOT')).ItemIndex = 0); menu := TGUIMenu(g_GUI_GetWindow('OptionsSoundMenu').GetControl('mOptionsSoundMenu')); @@ -398,7 +398,7 @@ begin if gVSync then ItemIndex := 0 else ItemIndex := 1; with TGUISwitch(menu.GetControl('swLegacyNPOT')) do - if not glLegacyNPOT then ItemIndex := 0 else ItemIndex := 1; + if not glNPOTOverride then ItemIndex := 0 else ItemIndex := 1; menu := TGUIMenu(g_GUI_GetWindow('OptionsSoundMenu').GetControl('mOptionsSoundMenu'));