aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-04-24 22:59:51 +0000
committerKenneth Russel <[email protected]>2005-04-24 22:59:51 +0000
commit492f117fd3f76c7a5778ca2a07c6f5803242b8e0 (patch)
treebebfe51a2cb8fc36613cdd8ad6caf04b88d1ef47 /src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java
parentc35019b5256ca33fb642d54608101ab7292f3c60 (diff)
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
Diffstat (limited to 'src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java')
-rw-r--r--src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java b/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java
index 1b5f54979..241a45dc9 100644
--- a/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java
+++ b/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java
@@ -103,6 +103,13 @@ public class X11OnscreenGLContext extends X11GLContext {
throw new GLException("Should not call this");
}
+ public void setSwapInterval(int interval) {
+ GL gl = getGL();
+ if (gl.isExtensionAvailable("GLX_SGI_swap_control")) {
+ gl.glXSwapIntervalSGI(interval);
+ }
+ }
+
protected synchronized boolean makeCurrent(Runnable initAction) throws GLException {
try {
if (!lockSurface()) {