mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Changed: Implement VSync under Mac OS X
This commit is contained in:
parent
43b87ff588
commit
1a5100bd93
1 changed files with 1 additions and 0 deletions
|
@ -2191,6 +2191,7 @@ void CDriverGL::setSwapVBLInterval(uint interval)
|
||||||
res = nwglSwapIntervalEXT(_Interval) == TRUE;
|
res = nwglSwapIntervalEXT(_Interval) == TRUE;
|
||||||
}
|
}
|
||||||
#elif defined(NL_OS_MAC)
|
#elif defined(NL_OS_MAC)
|
||||||
|
[_ctx setValues:&interval forParameter:NSOpenGLCPSwapInterval];
|
||||||
#elif defined(NL_OS_UNIX)
|
#elif defined(NL_OS_UNIX)
|
||||||
if (_win && _Extensions.GLXEXTSwapControl)
|
if (_win && _Extensions.GLXEXTSwapControl)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue