diff options
Diffstat (limited to 'src/net/java')
-rwxr-xr-x | src/net/java/games/jogl/FPSAnimator.java | 1 |
1 files changed, 1 insertions, 0 deletions
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() { |