Преглед изворни кода

vsync update on reset settings

Anis пре 10 година
родитељ
комит
005f322a94
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      Engine/source/gfx/gl/gfxGLWindowTarget.cpp

+ 2 - 0
Engine/source/gfx/gl/gfxGLWindowTarget.cpp

@@ -44,6 +44,8 @@ GFXGLWindowTarget::GFXGLWindowTarget(PlatformWindow *win, GFXDevice *d)
 
 void GFXGLWindowTarget::resetMode()
 {
+   PlatformGL::setVSync(GFXDevice::smDisableVSync ? 0 : 2);                             
+
    if(mWindow->getVideoMode().fullScreen != mWindow->isFullscreen())
    {
       _teardownCurrentMode();