From b47c46e93e3166ff631d361c470f4ecf0769edcf Mon Sep 17 00:00:00 2001 From: Nicola Thouliss Date: Wed, 22 Sep 2021 17:20:52 +1000 Subject: [PATCH] Fix crash on Safari 15 Co-Authored-By: Mitchell McCaffrey <7615006+mitchemmc@users.noreply.github.com> --- src/components/dice/DiceInteraction.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/dice/DiceInteraction.tsx b/src/components/dice/DiceInteraction.tsx index 26adb41..88cf213 100644 --- a/src/components/dice/DiceInteraction.tsx +++ b/src/components/dice/DiceInteraction.tsx @@ -60,6 +60,9 @@ function DiceInteraction({ const engine = new Engine(canvas, true, { preserveDrawingBuffer: true, stencil: true, + // Prevent XR from loading as Safari 15 crashes with this enabled + // TODO: Remove when https://github.com/BabylonJS/Babylon.js/pull/11121/files released + xrCompatible: false }); const scene = new Scene(engine); scene.clearColor = new Color4(0, 0, 0, 0);