From cb8bb5f6f4888fb6914fb1461cbf811eee10d863 Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 27 May 2016 22:16:44 +0200 Subject: [PATCH] Changed: No need to change VSync if same value --HG-- branch : develop --- code/nel/src/3d/driver/opengl/driver_opengl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl.cpp b/code/nel/src/3d/driver/opengl/driver_opengl.cpp index db0100167..6ab0e3336 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl.cpp @@ -2295,6 +2295,9 @@ void CDriverGL::setSwapVBLInterval(uint interval) bool res = true; + // don't try to change VBL if interval didn't change + if (_Interval == interval) return; + #ifdef USE_OPENGLES res = eglSwapInterval(_EglDisplay, interval) == EGL_TRUE; #elif defined(NL_OS_WINDOWS)