mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-30 04:40:53 +00:00
Changed: No need to change VSync if same value
This commit is contained in:
parent
bd0678bd84
commit
4b1f0731a5
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue