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
  • Loading branch information
dsnopek committed Apr 28, 2021
1 parent f879a08 commit b77925d
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 b77925d

Please sign in to comment.