diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-11-14 21:31:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 21:31:58 +0100 |
commit | aa4c286808bbf4b16346de40307fcd5b29f19697 (patch) | |
tree | 0cc569c1bf545d368c71fcc3f8091fbfcb0ce691 /modules | |
parent | 315c64282bb8d24963104c6386f0a82dc5ccb777 (diff) | |
parent | a17e93cec24fcb33a10341e864be08867b6f8608 (diff) |
Merge pull request #68488 from dsnopek/master-webxr-no-exit-runtime
Fix WebXR after changing Emscripten configuration noExitRuntime to false
Diffstat (limited to 'modules')
-rw-r--r-- | modules/webxr/native/library_godot_webxr.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/webxr/native/library_godot_webxr.js b/modules/webxr/native/library_godot_webxr.js index c476a54c59..714768347c 100644 --- a/modules/webxr/native/library_godot_webxr.js +++ b/modules/webxr/native/library_godot_webxr.js @@ -28,7 +28,7 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ const GodotWebXR = { - $GodotWebXR__deps: ['$Browser', '$GL', '$GodotRuntime'], + $GodotWebXR__deps: ['$Browser', '$GL', '$GodotRuntime', '$runtimeKeepalivePush', '$runtimeKeepalivePop'], $GodotWebXR: { gl: null, @@ -69,7 +69,9 @@ const GodotWebXR = { // gets picked up automatically, however, in the Oculus Browser // on the Quest, we need to pause and resume the main loop. Browser.mainLoop.pause(); + runtimeKeepalivePush(); // eslint-disable-line no-undef window.setTimeout(function () { + runtimeKeepalivePop(); // eslint-disable-line no-undef Browser.mainLoop.resume(); }, 0); }, |