mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Fixed: Set VSync value after 3D driver initialized
This commit is contained in:
parent
4b1f0731a5
commit
c83d7dd33e
1 changed files with 6 additions and 6 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue