diff options
author | Sven Gothel <[email protected]> | 2009-10-12 02:11:15 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-10-12 02:11:15 -0700 |
commit | 93a269bccf608baa5e7f8b7ec13ba823b8b2f086 (patch) | |
tree | ce7506646e3100b94a8380528ca42da1ec0c3350 /src/demos/applets/JOGLNewtAppletBase.java | |
parent | d1a53b3ba93789aea1c37d042bc722a2a9c052d9 (diff) |
JOGLNewtAppletBase et al - no dispose event at destruction, since it's critical within a browser
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; } } |