Skip to content

Commit

Permalink
Fix exception when trying to reference this inside callback. (#5221)
Browse files Browse the repository at this point in the history
  • Loading branch information
diarmidmackenzie authored Jan 19, 2023
1 parent 96706c4 commit 9a651e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/scene/a-scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class AScene extends AEntity {
vrManager.setSession(xrSession).then(function () {
vrManager.setFoveation(rendererSystem.foveationLevel);
});
this.sceneEl.systems.renderer.setWebXRFrameRate(xrSession);
self.systems.renderer.setWebXRFrameRate(xrSession);
xrSession.addEventListener('end', self.exitVRBound);
enterVRSuccess(resolve);
},
Expand Down

0 comments on commit 9a651e8

Please sign in to comment.