From d96486967efcfb6f43226da9fa60cbc3d68ab323 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 28 Jun 2008 14:30:26 +0000 Subject: 3rd round cdcfp - compile clean. Re-adding cdcfp: com/sun/opengl/impl/glu/mipmap/* com/sun/opengl/impl/GLPbufferImpl.java Using 'BufferUtil.nativeOrder(ByteBuffer)' to set up the native byte order. 'BufferUtil.nativeOrder' is now public. GLDrawableFactory: - removed 'hardcoded' awt attribute. Cleanup NEWT's AWT wrapping implementation. - NativeWindowFactory incooperates with the wrapping property. Bugs on X11/NEWT/AWT: - no events - deadlock at shutdown - deadlock if EGLDrawable with AWT get's locked git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1700 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/com/sun/opengl/impl/GLDrawableImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/classes/com/sun/opengl/impl/GLDrawableImpl.java') 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; -- cgit v1.2.3