NSGL: Disable swap interval

Swap interval now uses CVDisplayLink.
master
Camilla Löwy ago%!(EXTRA string=6 years) committed by Camilla Löwy
parent 224e9205e0
commit 28f118f4de
  1. 4
      src/nsgl_context.m

@ -364,6 +364,10 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
if (window->ns.retina) if (window->ns.retina)
[window->ns.view setWantsBestResolutionOpenGLSurface:YES]; [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.object setView:window->ns.view];
window->context.nsgl.swapIntervalCond = [NSCondition new]; window->context.nsgl.swapIntervalCond = [NSCondition new];

Loading…
Cancel
Save