summaryrefslogtreecommitdiffstats
path: root/src/demos/swt/Snippet209.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/swt/Snippet209.java')
-rw-r--r--src/demos/swt/Snippet209.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/demos/swt/Snippet209.java b/src/demos/swt/Snippet209.java
index d4238e2..f75d59d 100644
--- a/src/demos/swt/Snippet209.java
+++ b/src/demos/swt/Snippet209.java
@@ -95,6 +95,7 @@ public class Snippet209 {
context.makeCurrent();
GL2 gl = context.getGL().getGL2();
+ gl.setSwapInterval(1);
gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
gl.glColor3f(1.0f, 0.0f, 0.0f);
gl.glHint(gl.GL_PERSPECTIVE_CORRECTION_HINT, gl.GL_NICEST);