瀏覽代碼

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