camptocamp/ol3 — pull request #30 by elemoine (2014-11-10 15:56:19+00:00)
Title: Add ol.renderer.webgl.VectorLayer#disposeInternal

Implement `disposeInternal` in `ol.renderer.webgl.VectorLayer` to free WebGL resources (`deleteBuffer` and `deleteTexture`) when the vector layer is removed from the map.

Note: properly handling context losses is yet to be done.