exokitxr / exokit-web

Exokit WebXR engine for the browser
70 stars 18 forks source link

Virtualize GL Contexts #46

Closed avaer closed 5 years ago

avaer commented 5 years ago

This PR virtualizes all child xr-iframe GL contexts under a single one at the top level.

In addition to fixing a bunch of bugs, this also fixes the problem with GL context loss not being handled by sampled sites.

Fixes https://github.com/exokitxr/exokit-web/issues/18. Fixes https://github.com/exokitxr/exokit-web/issues/39. Fixes https://github.com/exokitxr/exokit-web/issues/6.