aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-02-01 12:41:53 +0100
committerSven Gothel <[email protected]>2013-02-01 12:41:53 +0100
commitfeebfdea24f8ac98282751824aa4d3569bb71d93 (patch)
treefb4cf4ffca10223f0eccabbe547cc1baed120405 /src/jogl/classes
parenta37dc59993dc6f3ad925d7ba1a2febccd8ee5e9d (diff)
Fix Animator resume() wait-condition (drawablesEmpty didn't wait for pausedIssued); Update TestGLWindows02NEWTAnimated (isPaused())
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/Animator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/Animator.java b/src/jogl/classes/com/jogamp/opengl/util/Animator.java
index 22832f6bd..673ec895e 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/Animator.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/Animator.java
@@ -307,7 +307,7 @@ public class Animator extends AnimatorBase {
private final Condition waitForPausedCondition = new Condition() {
public boolean eval() {
// end waiting if stopped as well
- return isAnimating && isStartedImpl();
+ return isStartedImpl() && isAnimating;
} };
public synchronized boolean resume() {
@@ -320,6 +320,6 @@ public class Animator extends AnimatorBase {
private final Condition waitForResumeCondition = new Condition() {
public boolean eval() {
// end waiting if stopped as well
- return !drawablesEmpty && !isAnimating && isStartedImpl();
+ return isStartedImpl() && ( !drawablesEmpty && !isAnimating || drawablesEmpty && !pauseIssued ) ;
} };
}