NSGL: Disable swap interval
Swap interval now uses CVDisplayLink.
From upstream: 28f118f4de
This commit is contained in:
parent
b3f1acd400
commit
ef86f8a20c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user