From 57e61da6792e223de14d2e98a2fb86cce51bfd35 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 1 Sep 2019 20:21:01 +0100 Subject: [PATCH] Set swap interval of the onscreen context on macOS --- gl-natives/src/main/c/jaggl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gl-natives/src/main/c/jaggl.c b/gl-natives/src/main/c/jaggl.c index 0142ae83..4c97c758 100644 --- a/gl-natives/src/main/c/jaggl.c +++ b/gl-natives/src/main/c/jaggl.c @@ -740,8 +740,7 @@ JNIEXPORT void JNICALL Java_jaggl_context_setSwapInterval(JNIEnv *env, jclass cl #elif defined(__APPLE__) && defined(__MACH__) GLint param = (GLint) interval; CGLSetParameter(jaggl_context, kCGLCPSwapInterval, ¶m); - - /* TODO(gpe): what about jaggl_onscreen_context? */ + CGLSetParameter(jaggl_onscreen_context, kCGLCPSwapInterval, ¶m); #else #error Unsupported platform #endif