You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
Fixes #48178: WebXR broken when built with Emscripten 2.0.13 or later
(cherry picked from commit b77925d246)
This commit is contained in:
committed by
Rémi Verschelde
parent
d54c13ac1a
commit
1db31d0afa
@@ -72,10 +72,8 @@ const GodotWebXR = {
|
|||||||
// enabled or disabled. When using the WebXR API Emulator, this
|
// enabled or disabled. When using the WebXR API Emulator, this
|
||||||
// gets picked up automatically, however, in the Oculus Browser
|
// gets picked up automatically, however, in the Oculus Browser
|
||||||
// on the Quest, we need to pause and resume the main loop.
|
// on the Quest, we need to pause and resume the main loop.
|
||||||
Browser.pauseAsyncCallbacks();
|
|
||||||
Browser.mainLoop.pause();
|
Browser.mainLoop.pause();
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
Browser.resumeAsyncCallbacks();
|
|
||||||
Browser.mainLoop.resume();
|
Browser.mainLoop.resume();
|
||||||
}, 0);
|
}, 0);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user