When the <html-gl> element or an element that has been activated via jQuery(element).htmlgl() is removed from DOM the associated WebGL representation should also be torn down.
This can be done via MutationObserver, but the teardown routine should also be publicly available for manual triggering.
When the
<html-gl>
element or an element that has been activated viajQuery(element).htmlgl()
is removed from DOM the associated WebGL representation should also be torn down.This can be done via MutationObserver, but the teardown routine should also be publicly available for manual triggering.