diff options
Diffstat (limited to 'src/demos/applets')
-rwxr-xr-x | src/demos/applets/JOGLNewtApplet1Run.java | 2 | ||||
-rwxr-xr-x | src/demos/applets/JOGLNewtAppletBase.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/demos/applets/JOGLNewtApplet1Run.java b/src/demos/applets/JOGLNewtApplet1Run.java index 936e7b9..0a5311b 100755 --- a/src/demos/applets/JOGLNewtApplet1Run.java +++ b/src/demos/applets/JOGLNewtApplet1Run.java @@ -86,7 +86,7 @@ public class JOGLNewtApplet1Run extends Applet { glWindow.setVisible(false); // hide 1st glWindow.reparentWindow(null); // get out of newtCanvasAWT this.remove(newtCanvasAWT); // remove newtCanvasAWT - base.destroy(true); // destroy glWindow unrecoverable + base.destroy(); // destroy glWindow unrecoverable base=null; } } diff --git a/src/demos/applets/JOGLNewtAppletBase.java b/src/demos/applets/JOGLNewtAppletBase.java index da8565c..9fa1bdc 100755 --- a/src/demos/applets/JOGLNewtAppletBase.java +++ b/src/demos/applets/JOGLNewtAppletBase.java @@ -152,7 +152,7 @@ public class JOGLNewtAppletBase extends WindowAdapter implements KeyListener, Mo } } - public void destroy(boolean unrecoverable) { + public void destroy() { isValid = false; if(null!=glAnimator) { glAnimator.stop(); @@ -160,7 +160,7 @@ public class JOGLNewtAppletBase extends WindowAdapter implements KeyListener, Mo glAnimator=null; } if(null!=glWindow) { - glWindow.destroy(unrecoverable); + glWindow.destroy(); glWindow=null; } } |