Animator is stopped only if it is currently animating.

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

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

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

Loading…
Cancel
Save