|
|
@ -85,6 +85,8 @@ public class JoglNewtCanvas extends JoglNewtAbstractDisplay implements JmeCanvas |
|
|
|
public void destroy(boolean waitFor){ |
|
|
|
public void destroy(boolean waitFor){ |
|
|
|
if (waitFor) |
|
|
|
if (waitFor) |
|
|
|
waitFor(false); |
|
|
|
waitFor(false); |
|
|
|
|
|
|
|
if (animator.isAnimating()) |
|
|
|
|
|
|
|
animator.stop(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -109,6 +111,12 @@ public class JoglNewtCanvas extends JoglNewtAbstractDisplay implements JmeCanvas |
|
|
|
listener.initialize(); |
|
|
|
listener.initialize(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected void startGLCanvas() { |
|
|
|
|
|
|
|
frameRate = settings.getFrameRate(); |
|
|
|
|
|
|
|
super.startGLCanvas(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void display(GLAutoDrawable glad) { |
|
|
|
public void display(GLAutoDrawable glad) { |
|
|
|
if (!created.get() && renderer != null){ |
|
|
|
if (!created.get() && renderer != null){ |
|
|
|
listener.destroy(); |
|
|
|
listener.destroy(); |
|
|
|