diff options
Diffstat (limited to 'src/jogl/classes/com/sun/opengl/impl/GLDrawableImpl.java')
-rw-r--r-- | src/jogl/classes/com/sun/opengl/impl/GLDrawableImpl.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/jogl/classes/com/sun/opengl/impl/GLDrawableImpl.java b/src/jogl/classes/com/sun/opengl/impl/GLDrawableImpl.java index 865abe09f..befee170f 100644 --- a/src/jogl/classes/com/sun/opengl/impl/GLDrawableImpl.java +++ b/src/jogl/classes/com/sun/opengl/impl/GLDrawableImpl.java @@ -112,8 +112,17 @@ public abstract class GLDrawableImpl implements GLDrawable { } public void setRealized(boolean realized) { - this.realized = realized; + if ( this.realized != realized ) { + if(DEBUG) { + System.err.println("setRealized: "+getClass().getName()+" "+this.realized+" -> "+realized); + } + this.realized = realized; + setRealizedImpl(); + } else if(DEBUG) { + System.err.println("setRealized: "+getClass().getName()+" "+this.realized+" == "+realized); + } } + protected abstract void setRealizedImpl(); public boolean getRealized() { return realized; |