aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/javafx
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-12-29 06:05:43 +0000
committerKenneth Russel <[email protected]>2008-12-29 06:05:43 +0000
commit20f707ac1cadf7ee6a1a14117a58be96672af809 (patch)
treefaac8507b929ad2ab20844dcbb0a048934996e86 /src/classes/com/sun/javafx
parent00b865b520d91cee6eda142cfcdf1fad4ab5a8c5 (diff)
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
Diffstat (limited to 'src/classes/com/sun/javafx')
-rw-r--r--src/classes/com/sun/javafx/newt/GLWindow.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/classes/com/sun/javafx/newt/GLWindow.java b/src/classes/com/sun/javafx/newt/GLWindow.java
index f7aedcf2a..c8c707e98 100644
--- a/src/classes/com/sun/javafx/newt/GLWindow.java
+++ b/src/classes/com/sun/javafx/newt/GLWindow.java
@@ -142,7 +142,7 @@ public class GLWindow extends Window implements GLAutoDrawable {
context.destroy();
}
if (drawable != null) {
- drawable.destroy();
+ drawable.setRealized(false);
}
window.close();
@@ -461,10 +461,6 @@ public class GLWindow extends Window implements GLAutoDrawable {
public void setRealized(boolean realized) {
}
- public void destroy() {
- close();
- }
-
public GLCapabilities getChosenGLCapabilities() {
if (drawable == null)
return null;