Animator is stopped only if it is currently animating.

experimental
saloisio 10 years ago
parent 23a0800e1d
commit 6dace77a7a
  1. 3
      jme3-jogl/src/main/java/com/jme3/system/jogl/JoglCanvas.java
  2. 3
      jme3-jogl/src/main/java/com/jme3/system/jogl/JoglNewtCanvas.java

@ -65,7 +65,8 @@ public class JoglCanvas extends JoglAbstractDisplay implements JmeCanvasContext
public void destroy(boolean waitFor){
if (waitFor)
waitFor(false);
animator.stop();
if (animator.isAnimating())
animator.stop();
}
@Override

@ -85,7 +85,8 @@ public class JoglNewtCanvas extends JoglNewtAbstractDisplay implements JmeCanvas
public void destroy(boolean waitFor){
if (waitFor)
waitFor(false);
animator.stop();
if (animator.isAnimating())
animator.stop();
}
@Override

Loading…
Cancel
Save