From b4afef9f93e722ab5f40a160eab5e55de86303d9 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 14 Aug 2005 18:25:56 +0000 Subject: Fixed bug in FPSAnimator git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@345 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/FPSAnimator.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/net/java/games') diff --git a/src/net/java/games/jogl/FPSAnimator.java b/src/net/java/games/jogl/FPSAnimator.java index cbe8b3571..131a35562 100755 --- a/src/net/java/games/jogl/FPSAnimator.java +++ b/src/net/java/games/jogl/FPSAnimator.java @@ -68,6 +68,7 @@ public class FPSAnimator extends Animator { if (timer != null) { throw new GLException("Already started"); } + timer = new Timer(); long delay = (long) (1000.0f / (float) fps); timer.schedule(new TimerTask() { public void run() { -- cgit v1.2.3