Changed: No need to change VSync if same value

This commit is contained in:
kervala 2016-05-27 22:16:44 +02:00
parent f1a7d0aa5f
commit 914d0eca9f

View file

@ -2295,6 +2295,9 @@ void CDriverGL::setSwapVBLInterval(uint interval)
bool res = true; bool res = true;
// don't try to change VBL if interval didn't change
if (_Interval == interval) return;
#ifdef USE_OPENGLES #ifdef USE_OPENGLES
res = eglSwapInterval(_EglDisplay, interval) == EGL_TRUE; res = eglSwapInterval(_EglDisplay, interval) == EGL_TRUE;
#elif defined(NL_OS_WINDOWS) #elif defined(NL_OS_WINDOWS)