From 72122564962269ce2ecc2e092b3cf502d5910a17 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Wed, 28 Apr 2021 08:26:05 -0500 Subject: [PATCH] Fixes #48178: WebXR broken when built with Emscripten 2.0.13 or later (cherry picked from commit b77925d24624599c8db319d602b6c1d2e3071ff9) --- modules/webxr/native/library_godot_webxr.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/webxr/native/library_godot_webxr.js b/modules/webxr/native/library_godot_webxr.js index a8643e24147..13057aea98b 100644 --- a/modules/webxr/native/library_godot_webxr.js +++ b/modules/webxr/native/library_godot_webxr.js @@ -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); },