Dispose of webgl resources properly

Fixes #3889
This commit is contained in:
Daniel Imms
2022-07-06 07:32:42 -07:00
parent 915fa49ce3
commit 54cbbf600d
6 changed files with 29 additions and 7 deletions
@@ -40,7 +40,7 @@ export abstract class BaseRenderLayer implements IRenderLayer {
}
public dispose(): void {
this._container.removeChild(this._canvas);
this._canvas.remove();
if (this._charAtlas) {
this._charAtlas.dispose();
}