Avoids initializing the display twice (work in progress)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9894 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
jul..om 12 years ago
parent 965b595384
commit 03fe815bd2
  1. 4
      engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java

@ -259,6 +259,8 @@ public class JoglDisplay extends JoglAbstractDisplay {
public void init(GLAutoDrawable drawable){
// prevent initializing twice on restart
if (!wasInited){
wasInited = true;
canvas.requestFocus();
super.internalCreate();
@ -266,8 +268,6 @@ public class JoglDisplay extends JoglAbstractDisplay {
renderer.initialize();
listener.initialize();
wasInited = true;
}
}

Loading…
Cancel
Save