Playcanvas engine fails to initialize on just released Safari 15. This seems to affect both Webgl1 and Webgl2 context.
This is the line that fails / makes the page reload:
|
gl = canvas.getContext(names[i], options); |
When this line is commented out, the engine starts up:
|
options.graphicsDeviceOptions.xrCompatible = true; |
I don't see this problem mentioned online yet.
Looking at documentation:
https://www.w3.org/TR/webxr/
it's recommended makeXRCompatible() is suggested to be used instead of this flag for multiple reasons. It could trigger context loss which is possibly the reason we do not use it at the moment.
Playcanvas engine fails to initialize on just released Safari 15. This seems to affect both Webgl1 and Webgl2 context.
This is the line that fails / makes the page reload:
engine/src/graphics/graphics-device.js
Line 301 in 6baccc6
When this line is commented out, the engine starts up:
engine/src/framework/application.js
Line 438 in 6baccc6
I don't see this problem mentioned online yet.
Looking at documentation:
https://www.w3.org/TR/webxr/
it's recommended makeXRCompatible() is suggested to be used instead of this flag for multiple reasons. It could trigger context loss which is possibly the reason we do not use it at the moment.