From 25642283fd65b5a22becd588b2564d162e85871a Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 24 Apr 2005 00:29:32 +0000 Subject: Added call to GL.setSwapInterval(1) to make demo animate smoothly on all platforms git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@65 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/demos/gears/Gears.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/demos/gears/Gears.java') diff --git a/src/demos/gears/Gears.java b/src/demos/gears/Gears.java index 17f1330..775dcf0 100644 --- a/src/demos/gears/Gears.java +++ b/src/demos/gears/Gears.java @@ -55,6 +55,8 @@ public class Gears { GL gl = drawable.getGL(); System.err.println("INIT GL IS: " + gl.getClass().getName()); + gl.setSwapInterval(1); + float pos[] = { 5.0f, 5.0f, 10.0f, 0.0f }; float red[] = { 0.8f, 0.1f, 0.0f, 1.0f }; float green[] = { 0.0f, 0.8f, 0.2f, 1.0f }; -- cgit v1.2.3