-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
Description
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
| gl = canvas.getContext(names[i], options); |
When this line is commented out, the engine starts up:
engine/src/framework/application.js
Line 438 in 6baccc6
| 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.
Reactions are currently unavailable