Skip to content

Commit

Permalink
Merge pull request #48268 from dsnopek/issue-48178
Browse files Browse the repository at this point in the history
Fixes #48178: WebXR broken when built with Emscripten 2.0.13 or later
  • Loading branch information
Faless authored Apr 28, 2021
2 parents f879a08 + b77925d commit 4ea7363
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/webxr/native/library_godot_webxr.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ const GodotWebXR = {
// enabled or disabled. When using the WebXR API Emulator, this
// gets picked up automatically, however, in the Oculus Browser
// on the Quest, we need to pause and resume the main loop.
Browser.pauseAsyncCallbacks();
Browser.mainLoop.pause();
window.setTimeout(function () {
Browser.resumeAsyncCallbacks();
Browser.mainLoop.resume();
}, 0);
},
Expand Down

0 comments on commit 4ea7363

Please sign in to comment.