NSGL: Disable swap interval

Swap interval now uses CVDisplayLink.
From upstream: 28f118f4de
This commit is contained in:
Kovid Goyal 2019-04-18 10:14:29 +05:30
parent b3f1acd400
commit ef86f8a20c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -302,6 +302,10 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
if (window->ns.retina)
[window->ns.view setWantsBestResolutionOpenGLSurface:YES];
GLint interval = 0;
[window->context.nsgl.object setValues:&interval
forParameter:NSOpenGLContextParameterSwapInterval];
[window->context.nsgl.object setView:window->ns.view];
window->context.makeCurrent = makeContextCurrentNSGL;