Explorar o código

vsync update on reset settings

Anis %!s(int64=10) %!d(string=hai) anos
pai
achega
005f322a94
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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();