Fix crash on Safari 15

Co-Authored-By: Mitchell McCaffrey <7615006+mitchemmc@users.noreply.github.com>
This commit is contained in:
Nicola Thouliss 2021-09-22 17:20:52 +10:00
parent 8f79791e86
commit b47c46e93e

View File

@ -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);