From 94246b5dd11378949892d7f571e5e208a9987a7a Mon Sep 17 00:00:00 2001 From: pogokeen Date: Thu, 22 Feb 2018 01:05:18 +0000 Subject: [PATCH] game.cpp: fixed GL vsync resetting issue due to system_getcvars() call coming before cvars were loaded git-svn-id: https://svn.eduke32.com/eduke32@6682 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index 959361450..184a8a9a7 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -6503,8 +6503,6 @@ int app_main(int argc, char const * const * argv) for (bssize_t i = MINIFONT + ('a'-'!'); minitext_lowercase && i < MINIFONT + ('z'-'!') + 1; ++i) minitext_lowercase &= tile_exists(i); - system_getcvars(); - char *const setupFileName = Xstrdup(g_setupFileName); char *const p = strtok(setupFileName, "."); @@ -6517,6 +6515,8 @@ int app_main(int argc, char const * const * argv) OSD_Exec(tempbuf); OSD_Exec("autoexec.cfg"); + + system_getcvars(); if (g_networkMode != NET_DEDICATED_SERVER) {