Support WebGL2 contexts in XRWebGLLayer.

This commit is contained in:
Josh Matthews 2020-04-08 12:49:16 -04:00
parent 2128bf1e05
commit c002a29582
3 changed files with 54 additions and 17 deletions

View file

@ -4,10 +4,8 @@
// https://immersive-web.github.io/webxr/#xrwebgllayer-interface
// typedef (WebGLRenderingContext or
// WebGL2RenderingContext) XRWebGLRenderingContext;
typedef WebGLRenderingContext XRWebGLRenderingContext;
typedef (WebGLRenderingContext or
WebGL2RenderingContext) XRWebGLRenderingContext;
dictionary XRWebGLLayerInit {
boolean antialias = true;