|
|
@ -107,6 +107,9 @@ public abstract class JoglNewtAbstractDisplay extends JoglContext implements GLE |
|
|
|
canvas.setSize(settings.getWidth(), settings.getHeight()); |
|
|
|
canvas.setSize(settings.getWidth(), settings.getHeight()); |
|
|
|
canvas.addGLEventListener(this); |
|
|
|
canvas.addGLEventListener(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//FIXME not sure it is the best place to do that
|
|
|
|
|
|
|
|
renderable.set(true); |
|
|
|
|
|
|
|
|
|
|
|
//TODO remove this block once for all when the unified renderer is stable
|
|
|
|
//TODO remove this block once for all when the unified renderer is stable
|
|
|
|
/*if (settings.getBoolean("GraphicsDebug")) { |
|
|
|
/*if (settings.getBoolean("GraphicsDebug")) { |
|
|
|
canvas.invoke(false, new GLRunnable() { |
|
|
|
canvas.invoke(false, new GLRunnable() { |
|
|
@ -172,9 +175,6 @@ public abstract class JoglNewtAbstractDisplay extends JoglContext implements GLE |
|
|
|
|
|
|
|
|
|
|
|
animator.start(); |
|
|
|
animator.start(); |
|
|
|
wasAnimating = true; |
|
|
|
wasAnimating = true; |
|
|
|
|
|
|
|
|
|
|
|
//FIXME not sure it is the best place to do that
|
|
|
|
|
|
|
|
renderable.set(true); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void onCanvasAdded() { |
|
|
|
protected void onCanvasAdded() { |
|
|
|