Skip to content

Commit d8fef14

Browse files
Fix random error when exiting VR. Remove setSession(null) call on exiting VR, threejs is already setting session to null in its onSessionEnd listener (fix #5137) (#5198)
1 parent e3912e5 commit d8fef14

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/core/scene/a-scene.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ class AScene extends AEntity {
404404
// Capture promise to avoid errors.
405405
this.xrSession.end().then(function () {}, function () {});
406406
this.xrSession = undefined;
407-
vrManager.setSession(null);
408407
} else {
409408
if (vrDisplay.isPresenting) {
410409
return vrDisplay.exitPresent().then(exitVRSuccess, exitVRFailure);

0 commit comments

Comments
 (0)