From b77925d24624599c8db319d602b6c1d2e3071ff9 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Wed, 28 Apr 2021 08:26:05 -0500 Subject: Fixes #48178: WebXR broken when built with Emscripten 2.0.13 or later --- modules/webxr/native/library_godot_webxr.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'modules') diff --git a/modules/webxr/native/library_godot_webxr.js b/modules/webxr/native/library_godot_webxr.js index 8e9ef8a73c..6e19a8ac6e 100644 --- a/modules/webxr/native/library_godot_webxr.js +++ b/modules/webxr/native/library_godot_webxr.js @@ -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); }, -- cgit v1.2.3