diff options
author | Sven Gothel <[email protected]> | 2010-11-23 05:07:51 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-23 05:07:51 +0100 |
commit | ae1ca3f2cae849f5e5a44538284082e861a98de1 (patch) | |
tree | 65c3c820ae0c744bc1f60393d41ffec6984a786d /src/demos/applets | |
parent | a6076ff25bd3abd2d1e12f77dfde3f255ac67e7d (diff) |
Adapt to JOGL 7262641429b542929efc699e392f410f1dee2187
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; } } |