From 336c8fc0b4f419196fe31f7dc86eed310160acaf Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 27 Jan 2013 04:37:33 +0100 Subject: GLDrawableHelper.invoke: If drawable is !realized -> deferred execution --- src/jogl/classes/jogamp/opengl/GLDrawableHelper.java | 4 ++-- 1 file 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