Drives the display renderable earlier in order to fix the unified renderer of the JOGL backend
This commit is contained in:
parent
fae50fd36e
commit
7bd414665b
@ -128,6 +128,9 @@ public abstract class JoglAbstractDisplay extends JoglContext implements GLEvent
|
||||
canvas.setIgnoreRepaint(true);
|
||||
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
|
||||
/*if (settings.getBoolean("GraphicsDebug")) {
|
||||
canvas.invoke(false, new GLRunnable() {
|
||||
@ -193,9 +196,6 @@ public abstract class JoglAbstractDisplay extends JoglContext implements GLEvent
|
||||
|
||||
animator.start();
|
||||
wasAnimating = true;
|
||||
|
||||
//FIXME not sure it is the best place to do that
|
||||
renderable.set(true);
|
||||
}
|
||||
|
||||
protected void onCanvasAdded() {
|
||||
|
@ -107,6 +107,9 @@ public abstract class JoglNewtAbstractDisplay extends JoglContext implements GLE
|
||||
canvas.setSize(settings.getWidth(), settings.getHeight());
|
||||
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
|
||||
/*if (settings.getBoolean("GraphicsDebug")) {
|
||||
canvas.invoke(false, new GLRunnable() {
|
||||
@ -172,9 +175,6 @@ public abstract class JoglNewtAbstractDisplay extends JoglContext implements GLE
|
||||
|
||||
animator.start();
|
||||
wasAnimating = true;
|
||||
|
||||
//FIXME not sure it is the best place to do that
|
||||
renderable.set(true);
|
||||
}
|
||||
|
||||
protected void onCanvasAdded() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user