mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-27 19:10:52 +00:00
Fixed: VSync inverted under Windows and in OpenGL ES
This commit is contained in:
parent
ddf5cee8f2
commit
c024b18fbe
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue