diff options
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-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) ); |