Skip to content

Commit

Permalink
Fixes godotengine#48178: WebXR broken when built with Emscripten 2.0.…
Browse files Browse the repository at this point in the history
…13 or later

(cherry picked from commit b77925d)
  • Loading branch information
dsnopek authored and akien-mga committed Apr 29, 2021
1 parent d54c13a commit 1db31d0
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 @@ -72,10 +72,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 1db31d0

Please sign in to comment.