aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-29 02:26:11 +0100
committerSven Gothel <[email protected]>2010-11-29 02:26:11 +0100
commitde9211df2c1654db889bb5d5c43297ed7d6499ba (patch)
treea1dc214360d065b12e686d3fe1cddc6c24e42724
parent8f79fbf000014f10f7c958ef03c656a4c383fc66 (diff)
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
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/AWTAnimatorImpl.java8
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/DefaultAnimatorImpl.java4
2 files changed, 3 insertions, 9 deletions
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<drawables.size(); i++) {
GLAutoDrawable drawable = (GLAutoDrawable) drawables.get(i);
try {
- if(drawable.isRealized()) {
- drawable.display();
- }
+ drawable.display();
} catch (RuntimeException e) {
if (ignoreExceptions) {
if (printExceptions) {