aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-jogl
diff options
context:
space:
mode:
authorJulien Gouesse <[email protected]>2013-03-17 21:38:10 +0100
committerJulien Gouesse <[email protected]>2013-03-17 21:38:10 +0100
commit46c9e69b60a8f70283d3fdee0f46d0924cc6916e (patch)
tree77824a9abf292a7ec252a19abc544cc328fea5ec /ardor3d-jogl
parent89fb76eea970f59ca8e1dc842eb20086cad5f93a (diff)
Adds setVSyncEnabled(boolean) into AWT-based canvases
Diffstat (limited to 'ardor3d-jogl')
-rw-r--r--ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvas.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvas.java b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvas.java
index c08396b..def1f49 100644
--- a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvas.java
+++ b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvas.java
@@ -27,10 +27,8 @@ import java.util.concurrent.CountDownLatch;
import java.util.logging.Level;
import java.util.logging.Logger;
-import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLContext;
import javax.media.opengl.GLException;
-import javax.media.opengl.GLRunnable;
import com.ardor3d.annotation.MainThread;
import com.ardor3d.framework.CanvasRenderer;
@@ -274,12 +272,6 @@ public class JoglCanvas extends Frame implements NativeCanvas {
}
public void setVSyncEnabled(final boolean enabled) {
- _glCanvas.invoke(true, new GLRunnable() {
- @Override
- public boolean run(GLAutoDrawable glAutoDrawable) {
- _glCanvas.getGL().setSwapInterval(enabled ? 1 : 0);
- return false;
- }
- });
+ _glCanvas.setVSyncEnabled(enabled);
}
}