From 005f322a94c4879729f0f33e3be887e7b41011ad Mon Sep 17 00:00:00 2001 From: Anis Date: Sat, 6 Dec 2014 19:41:00 +0100 Subject: [PATCH] vsync update on reset settings --- Engine/source/gfx/gl/gfxGLWindowTarget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Engine/source/gfx/gl/gfxGLWindowTarget.cpp b/Engine/source/gfx/gl/gfxGLWindowTarget.cpp index c02ff1bc3..b92f695a7 100644 --- a/Engine/source/gfx/gl/gfxGLWindowTarget.cpp +++ b/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();