diff options
author | Sven Gothel <[email protected]> | 2013-01-27 04:37:33 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-01-27 04:37:33 +0100 |
commit | 336c8fc0b4f419196fe31f7dc86eed310160acaf (patch) | |
tree | 6aa84efc0100a514eaed400327e4c633e605d3c4 /src/jogl/classes/jogamp | |
parent | 4e9054d996870467182b0e963fa80aa6740968b6 (diff) |
GLDrawableHelper.invoke: If drawable is !realized -> deferred execution
Diffstat (limited to 'src/jogl/classes/jogamp')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLDrawableHelper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java b/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java index 5d113ff83..3eedf918e 100644 --- a/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java +++ b/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java @@ -744,9 +744,9 @@ public class GLDrawableHelper { synchronized(rTaskLock) { final boolean deferred; synchronized(glRunnablesLock) { - deferred = isAnimatorAnimatingOnOtherThread(); + deferred = isAnimatorAnimatingOnOtherThread() || !drawable.isRealized(); if(!deferred) { - wait = false; // don't wait if exec immediatly + wait = false; // don't wait if exec immediately } for(int i=0; i<count-1; i++) { glRunnables.add( new GLRunnableTask(newGLRunnables.get(i), null, false) ); |