From de9211df2c1654db889bb5d5c43297ed7d6499ba Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 29 Nov 2010 02:26:11 +0100 Subject: JOGL AnimatorImpl: issue drawable.display() even if it's not realized yet, since the drawable may realize itself with the display() call. This situation appears with an AWT GLCanvas --- src/jogl/classes/com/jogamp/opengl/util/AWTAnimatorImpl.java | 8 ++------ src/jogl/classes/com/jogamp/opengl/util/DefaultAnimatorImpl.java | 4 +--- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'src/jogl/classes/com') diff --git a/src/jogl/classes/com/jogamp/opengl/util/AWTAnimatorImpl.java b/src/jogl/classes/com/jogamp/opengl/util/AWTAnimatorImpl.java index 2240063d9..9c77a0508 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/AWTAnimatorImpl.java +++ b/src/jogl/classes/com/jogamp/opengl/util/AWTAnimatorImpl.java @@ -68,14 +68,10 @@ class AWTAnimatorImpl implements AnimatorBase.AnimatorImpl { // scheme than simply forcing repainting of each one in // turn since drawing one can force another one to be // drawn in turn - if(drawable.isRealized()) { - lightweights.add(drawable); - } + lightweights.add(drawable); } else { try { - if(drawable.isRealized()) { - drawable.display(); - } + drawable.display(); } catch (RuntimeException e) { if (ignoreExceptions) { if (printExceptions) { diff --git a/src/jogl/classes/com/jogamp/opengl/util/DefaultAnimatorImpl.java b/src/jogl/classes/com/jogamp/opengl/util/DefaultAnimatorImpl.java index f98c4b488..d3f9cdeeb 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/DefaultAnimatorImpl.java +++ b/src/jogl/classes/com/jogamp/opengl/util/DefaultAnimatorImpl.java @@ -47,9 +47,7 @@ class DefaultAnimatorImpl implements AnimatorBase.AnimatorImpl { for (int i=0; i