aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/javafx
diff options
context:
space:
mode:
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;