From dc34668b5b067e9cc0ba35d670d5d4bbd213650a 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 0142ae8..4c97c75 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