From 20f707ac1cadf7ee6a1a14117a58be96672af809 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 29 Dec 2008 06:05:43 +0000 Subject: After more thought, realized once again that because most Java window toolkits create persistent Java heap objects corresponding to components that might be realized and unrealized multiple times, the programming model of JOGL implies that GLDrawables must be persistent with regard to the components for which they are created, and that the setRealized(true/false) hook must be the indicator that any OpenGL resources associated with that window are to be created or destroyed. Removed GLDrawable.destroy(); it is now once again only present for GLPbuffer. Fixed up various on-screen and off-screen GLDrawable implementations. Refactored EGLDrawable implementation to trigger on setRealized(true/false); these changes have been compiled but not tested. Clarified documentation of GLDrawable.setRealized. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1828 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/com/sun/opengl/impl/x11/glx/X11PbufferGLXDrawable.java | 1 - 1 file changed, 1 deletion(-) (limited to 'src/classes/com/sun/opengl/impl/x11/glx/X11PbufferGLXDrawable.java') diff --git a/src/classes/com/sun/opengl/impl/x11/glx/X11PbufferGLXDrawable.java b/src/classes/com/sun/opengl/impl/x11/glx/X11PbufferGLXDrawable.java index db3dbc47f..390ca96a4 100644 --- a/src/classes/com/sun/opengl/impl/x11/glx/X11PbufferGLXDrawable.java +++ b/src/classes/com/sun/opengl/impl/x11/glx/X11PbufferGLXDrawable.java @@ -90,7 +90,6 @@ public class X11PbufferGLXDrawable extends X11GLXDrawable { } finally { getFactoryImpl().unlockToolkit(); } - super.destroy(); } private void createPbuffer() { -- cgit v1.2.3