Skip to content

Compatibility issue with Safari 15 #3500

@mvaligursky

Description

@mvaligursky

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.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions