immersive-web / webxr-polyfill

Use the WebXR Device API today, providing fallbacks to native WebVR 1.1 and Cardboard
Apache License 2.0
381 stars 84 forks source link

XRSession initial renderState should not be null #99

Closed takahirox closed 4 years ago

takahirox commented 4 years ago

From #98

IIRC, initial renderState (active render state) of XRSession shouldn't be null, but should be new XRRenderState.

https://immersive-web.github.io/webxr/#xrsession-interface

Each XRSession has an active render state which is a new XRRenderState,

The renderState attribute returns the XRSession's active render state.

jsantell commented 4 years ago

LGTM! Thanks @takahirox