diff options
Diffstat (limited to 'src/demos/applets/JOGLNewtAppletBase.java')
-rwxr-xr-x | src/demos/applets/JOGLNewtAppletBase.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/applets/JOGLNewtAppletBase.java b/src/demos/applets/JOGLNewtAppletBase.java index 12d2af7..428e0b2 100755 --- a/src/demos/applets/JOGLNewtAppletBase.java +++ b/src/demos/applets/JOGLNewtAppletBase.java @@ -151,7 +151,8 @@ public class JOGLNewtAppletBase implements WindowListener, KeyListener, MouseLis } } - public void destroy() { + /** @param sendDisposeEvent should be false in a [time,reliable] critical shutdown */ + public void destroy(boolean sendDisposeEvent) { isValid = false; if(null!=glAnimator) { glAnimator.stop(); @@ -159,7 +160,7 @@ public class JOGLNewtAppletBase implements WindowListener, KeyListener, MouseLis glAnimator=null; } if(null!=glWindow) { - glWindow.destroy(true); // deep, incl. Screen and Display + glWindow.destroy(sendDisposeEvent); glWindow=null; } } |