From c024b18fbe2ffcd827a6f1bf545c4b9d562ab5f8 Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 27 May 2016 22:15:14 +0200 Subject: [PATCH] Fixed: VSync inverted under Windows and in OpenGL ES --- code/nel/src/3d/driver/opengl/driver_opengl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl.cpp b/code/nel/src/3d/driver/opengl/driver_opengl.cpp index 8ad9228ef..a9a50226c 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl.cpp @@ -2293,11 +2293,11 @@ void CDriverGL::setSwapVBLInterval(uint interval) bool res = true; #ifdef USE_OPENGLES - res = eglSwapInterval(_EglDisplay, _Interval) == EGL_TRUE; + res = eglSwapInterval(_EglDisplay, interval) == EGL_TRUE; #elif defined(NL_OS_WINDOWS) if(_Extensions.WGLEXTSwapControl) { - res = nwglSwapIntervalEXT(_Interval) == TRUE; + res = nwglSwapIntervalEXT(interval) == TRUE; } #elif defined(NL_OS_MAC) [_ctx setValues:(GLint*)&interval forParameter:NSOpenGLCPSwapInterval];