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