Set swap interval of the onscreen context on macOS

master
Graham 5 years ago
parent 064ecf3497
commit dc34668b5b
  1. 3
      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__) #elif defined(__APPLE__) && defined(__MACH__)
GLint param = (GLint) interval; GLint param = (GLint) interval;
CGLSetParameter(jaggl_context, kCGLCPSwapInterval, &param); CGLSetParameter(jaggl_context, kCGLCPSwapInterval, &param);
CGLSetParameter(jaggl_onscreen_context, kCGLCPSwapInterval, &param);
/* TODO(gpe): what about jaggl_onscreen_context? */
#else #else
#error Unsupported platform #error Unsupported platform
#endif #endif

Loading…
Cancel
Save