Fix for NPE when initializing mirror view
This commit is contained in:
parent
1c22bd26b7
commit
7818f985be
@ -73,7 +73,7 @@ public class VREnvironment {
|
|||||||
|
|
||||||
guiManager = new VRGuiManager(this);
|
guiManager = new VRGuiManager(this);
|
||||||
mouseManager = new VRMouseManager(this);
|
mouseManager = new VRMouseManager(this);
|
||||||
dummyCam = new Camera();
|
dummyCam = new Camera(settings.getWidth(), settings.getHeight());
|
||||||
|
|
||||||
processSettings();
|
processSettings();
|
||||||
}
|
}
|
||||||
@ -347,7 +347,7 @@ public class VREnvironment {
|
|||||||
if (application.getCamera() != null){
|
if (application.getCamera() != null){
|
||||||
dummyCam = application.getCamera().clone();
|
dummyCam = application.getCamera().clone();
|
||||||
} else {
|
} else {
|
||||||
return new Camera();
|
return new Camera(settings.getWidth(), settings.getHeight());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalStateException("VR environment is not attached to any application.");
|
throw new IllegalStateException("VR environment is not attached to any application.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user