diff options
author | Sven Gothel <sgothel@jausoft.com> | 2010-11-22 12:46:19 +0100 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2010-11-22 12:46:19 +0100 |
commit | 4c3e9e258fae1161949dd14828c09f387bfd53d9 (patch) | |
tree | a8b287153f6afbf166db85506af4c3790590663d /src/jogl/classes/javax/media/opengl/awt | |
parent | 6a3ccca96e6d4c27c372b4b9ba1e8fcee6def402 (diff) |
GLAnimatorControl pause()/resume() don't fail fast, return a boolean instead to simplify usage.
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/awt')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/awt/GLCanvas.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java index 265c7ff49..b2d919eaf 100644 --- a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java +++ b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java @@ -351,10 +351,7 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable { GLAnimatorControl animator = getAnimator(); if(null!=animator) { if(regenerate) { - if(animator.isStarted() && !animator.isPaused()) { - animator.pause(); - animatorPaused = true; - } + animatorPaused = animator.pause(); } else { animator.remove(this); } |