diff options
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/AWTAnimatorImpl.java | 8 | ||||
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/DefaultAnimatorImpl.java | 4 |
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) { |