From 1a5100bd93721cfa832e07d2264206a54c9b97e8 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 13 Nov 2013 21:54:45 +0100 Subject: [PATCH] Changed: Implement VSync under Mac OS X --- code/nel/src/3d/driver/opengl/driver_opengl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl.cpp b/code/nel/src/3d/driver/opengl/driver_opengl.cpp index 02617990d..c0907dd71 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl.cpp @@ -2191,6 +2191,7 @@ void CDriverGL::setSwapVBLInterval(uint interval) res = nwglSwapIntervalEXT(_Interval) == TRUE; } #elif defined(NL_OS_MAC) + [_ctx setValues:&interval forParameter:NSOpenGLCPSwapInterval]; #elif defined(NL_OS_UNIX) if (_win && _Extensions.GLXEXTSwapControl) {