PixelsCommander / HTML-GL

Get as many FPS as you need and amazing effects by rendering HTML/CSS in WebGL
3.46k stars 154 forks source link

[FEATURE] WebGL Teardown #61

Open runspired opened 9 years ago

runspired commented 9 years ago

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.

PixelsCommander commented 9 years ago

Hi, could you make a pull request on that?