aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-01-27 04:37:33 +0100
committerSven Gothel <[email protected]>2013-01-27 04:37:33 +0100
commit336c8fc0b4f419196fe31f7dc86eed310160acaf (patch)
tree6aa84efc0100a514eaed400327e4c633e605d3c4 /src/jogl/classes/jogamp
parent4e9054d996870467182b0e963fa80aa6740968b6 (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.java4
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) );