Fixed: Set VSync value after 3D driver initialized

This commit is contained in:
kervala 2016-05-27 22:17:25 +02:00
parent 914d0eca9f
commit 37e2221e53

View file

@ -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());