From 28f118f4de1af12e0abb516459f1d2318e1710c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 8 Apr 2019 21:49:17 +0200 Subject: [PATCH] NSGL: Disable swap interval Swap interval now uses CVDisplayLink. --- src/nsgl_context.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nsgl_context.m b/src/nsgl_context.m index 1f2f2218..bd2d66c3 100644 --- a/src/nsgl_context.m +++ b/src/nsgl_context.m @@ -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];