浏览代码

vSync on opengl

Anis 11 年之前
父节点
当前提交
b444cabe4d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/gfx/gl/gfxGLDevice.cpp

+ 1 - 1
Engine/source/gfx/gl/gfxGLDevice.cpp

@@ -147,7 +147,7 @@ void GFXGLDevice::initGLState()
    }
 #endif
 
-   PlatformGL::setVSync(0);
+   PlatformGL::setVSync(smDisableVSync ? 0 : 2);
 
    //OpenGL 3 need a binded VAO for render
    GLuint vao;