2
0
Эх сурвалжийг харах

Drives the display renderable earlier in order to fix the unified renderer of the JOGL backend

Julien Gouesse 10 жил өмнө
parent
commit
7bd414665b

+ 3 - 3
jme3-jogl/src/main/java/com/jme3/system/jogl/JoglAbstractDisplay.java

@@ -127,6 +127,9 @@ public abstract class JoglAbstractDisplay extends JoglContext implements GLEvent
         canvas.setSize(settings.getWidth(), settings.getHeight());
         canvas.setSize(settings.getWidth(), settings.getHeight());
         canvas.setIgnoreRepaint(true);
         canvas.setIgnoreRepaint(true);
         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")) {
@@ -193,9 +196,6 @@ public abstract class JoglAbstractDisplay extends JoglContext implements GLEvent
 
 
         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() {

+ 3 - 3
jme3-jogl/src/main/java/com/jme3/system/jogl/JoglNewtAbstractDisplay.java

@@ -106,6 +106,9 @@ public abstract class JoglNewtAbstractDisplay extends JoglContext implements GLE
         canvas.requestFocus();
         canvas.requestFocus();
         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")) {
@@ -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() {