From 492f117fd3f76c7a5778ca2a07c6f5803242b8e0 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 24 Apr 2005 22:59:51 +0000 Subject: Merged with current JOGL trunk (by using -r HEAD) git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@262 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/native/jogl/MacOSXWindowSystemInterface.m | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/native') diff --git a/src/native/jogl/MacOSXWindowSystemInterface.m b/src/native/jogl/MacOSXWindowSystemInterface.m index afa0fea69..6a5969fff 100644 --- a/src/native/jogl/MacOSXWindowSystemInterface.m +++ b/src/native/jogl/MacOSXWindowSystemInterface.m @@ -235,3 +235,9 @@ void* getProcAddress(const char *procname) return NULL; } + +void setSwapInterval(void* context, int interval) { + NSOpenGLContext *nsContext = (NSOpenGLContext*)context; + long swapInterval = interval; + [nsContext setValues: &swapInterval forParameter: NSOpenGLCPSwapInterval]; +} -- cgit v1.2.3