From aeb33f9967ef3df7518536de85f529651923105e Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 27 May 2016 22:17:25 +0200 Subject: [PATCH] Fixed: Set VSync value after 3D driver initialized --HG-- branch : develop --- code/ryzom/client/src/init.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/ryzom/client/src/init.cpp b/code/ryzom/client/src/init.cpp index f7a5af7af..d96147da8 100644 --- a/code/ryzom/client/src/init.cpp +++ b/code/ryzom/client/src/init.cpp @@ -1119,12 +1119,6 @@ void prelogInit() if(ClientCfg.DisableTextureShdr) Driver->disableHardwareTextureShader(); - // Enable or disable VSync - if(ClientCfg.WaitVBL) - Driver->setSwapVBLInterval(1); - else - Driver->setSwapVBLInterval(0); - if (StereoDisplay) // VR_CONFIG // VR_DRIVER { // override mode TODO @@ -1150,6 +1144,12 @@ void prelogInit() return; } + // Enable or disable VSync + if (ClientCfg.WaitVBL) + Driver->setSwapVBLInterval(1); + else + Driver->setSwapVBLInterval(0); + // initialize system utils class CSystemUtils::init(); CSystemUtils::setWindow(Driver->getDisplay());