From ef86f8a20c39170342e9bc5ffbd12a6c5b16eb99 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 18 Apr 2019 10:14:29 +0530 Subject: [PATCH] NSGL: Disable swap interval Swap interval now uses CVDisplayLink. From upstream: https://github.com/glfw/glfw/commit/28f118f4de1af12e0abb516459f1d2318e1710c8 --- glfw/nsgl_context.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glfw/nsgl_context.m b/glfw/nsgl_context.m index cfa398d94..97a6ba6b4 100644 --- a/glfw/nsgl_context.m +++ b/glfw/nsgl_context.m @@ -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;