NSGL: Disable swap interval

Swap interval now uses CVDisplayLink.
This commit is contained in:
Camilla Löwy 2019-04-08 21:49:17 +02:00 committed by Camilla Löwy
parent 224e9205e0
commit 28f118f4de

View File

@ -364,6 +364,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.nsgl.swapIntervalCond = [NSCondition new];