Browse Source

vsync update on reset settings

Anis 10 năm trước cách đây
mục cha
commit
005f322a94
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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();