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