diff options
Diffstat (limited to 'src/newt/classes/com')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/opengl/GLWindow.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java index f6901e54a..7836bec68 100644 --- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java +++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java @@ -280,10 +280,14 @@ public class GLWindow implements GLAutoDrawable, Window { /** Window.LifecycleHook */ public synchronized void destroyActionPreLock(boolean unrecoverable) { GLAnimatorControl animator = GLWindow.this.getAnimator(); - // since we have no 'recreation model' for dispose here yet, - // we simply stop the animator if started. - if(null!=animator && animator.isStarted()) { - animator.stop(); + if(null!=animator) { + if(unrecoverable) { + if(animator.isStarted()) { + animator.stop(); + } + } else if(animator.isAnimating()) { + animator.pause(); + } } } |