Fix for NPE when initializing mirror view

fix-456
Rickard Edén 8 years ago
parent 1c22bd26b7
commit 7818f985be
  1. 4
      jme3-vr/src/main/java/com/jme3/app/VREnvironment.java

@ -73,7 +73,7 @@ public class VREnvironment {
guiManager = new VRGuiManager(this);
mouseManager = new VRMouseManager(this);
dummyCam = new Camera();
dummyCam = new Camera(settings.getWidth(), settings.getHeight());
processSettings();
}
@ -347,7 +347,7 @@ public class VREnvironment {
if (application.getCamera() != null){
dummyCam = application.getCamera().clone();
} else {
return new Camera();
return new Camera(settings.getWidth(), settings.getHeight());
}
} else {
throw new IllegalStateException("VR environment is not attached to any application.");

Loading…
Cancel
Save