소스 검색

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