diff options
Diffstat (limited to 'src/classes/com/sun/opengl/impl/GLDrawableImpl.java')
-rw-r--r-- | src/classes/com/sun/opengl/impl/GLDrawableImpl.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/classes/com/sun/opengl/impl/GLDrawableImpl.java b/src/classes/com/sun/opengl/impl/GLDrawableImpl.java index 26f3d6585..3053a91de 100644 --- a/src/classes/com/sun/opengl/impl/GLDrawableImpl.java +++ b/src/classes/com/sun/opengl/impl/GLDrawableImpl.java @@ -52,6 +52,7 @@ public abstract class GLDrawableImpl implements GLDrawable { /** For offscreen GLDrawables (pbuffers and "pixmap" drawables), indicates that native resources should be reclaimed. */ public void destroy() throws GLException { + setRealized(false); } public void swapBuffers() throws GLException { @@ -125,6 +126,12 @@ public abstract class GLDrawableImpl implements GLDrawable { return component.isSurfaceLocked(); } + public String toString() { + return "GLDrawable[realized "+getRealized()+ + ", window "+getNativeWindow()+ + ", factory "+getFactory()+"]"; + } + protected GLDrawableFactory factory; protected NativeWindow component; private GLCapabilities chosenCapabilities; |