immersive-web / webxr-samples

Samples to demonstrate use of the WebXR Device API
https://immersive-web.github.io/webxr-samples/
MIT License
979 stars 474 forks source link

Add missing glClear call to layer samples #179

Open idrisshah opened 5 months ago

idrisshah commented 5 months ago

Quad layer samples are broken because of missing glClear on Magic Leap system. These samples miss a glClear call before every frame rendered.

** This patch is funded by Magic Leap

idrisshah commented 5 months ago

Thanks for this clarification. I missed that part. In that case, there are some samples that still have glClear calls like: https://immersive-web.github.io/webxr-samples/layers-samples/proj-layer.html. Should those be cleaned up for consistency?

cabanier commented 5 months ago

Thanks for this clarification. I missed that part. In that case, there are some samples that still have glClear calls like: https://immersive-web.github.io/webxr-samples/layers-samples/proj-layer.html. Should those be cleaned up for consistency?

yes, that would be good