From 03fe815bd26be104f4dc3cbd4952bd434706af98 Mon Sep 17 00:00:00 2001 From: "jul..om" Date: Thu, 25 Oct 2012 16:59:52 +0000 Subject: [PATCH] Avoids initializing the display twice (work in progress) git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9894 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java b/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java index 32469f208..b47326dc0 100644 --- a/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java +++ b/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; } }