Initialization of vrProvider in constructor rather than in the declaration.
private final Camera playerCamera;
// TODO: @In
- private final OpenVRProvider vrProvider = OpenVRProvider.getInstance();
+ private final OpenVRProvider vrProvider;
private float timeSmoothedMainLightIntensity;
private RenderingStage currentRenderingStage;
@@ -163,6 +163,7 @@ public WorldRendererImpl(Context context, GLBufferPool bufferPool) {
this.backdropProvider = context.get(BackdropProvider.class);
this.renderingConfig = context.get(Config.class).getRendering();
this.shaderManager = context.get(ShaderManager.class);
+ vrProvider = OpenVRProvider.getInstance();
if (renderingConfig.isVrSupport()) {
context.put(OpenVRProvider.class, vrProvider);
if (vrProvider.init()) {
