Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd origin trials for webgl 2 #26144
Closed
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Our WebGL 2 implementation is not yet at the point where we can enable it by default (in particular, there are problems like #26142). However, for demos that require WebGL 2 and run correctly with it enabled like http://joshmatthews.net/webxr-particles/, we should add support for enabling it on known-good origins. We can do this by using a
Funcannotation instead ofPrefin the various webgl2 WebIDL files, and the function can first check the preference, and then fall back to comparing the global's origin against a list of known good origins.