diff --git a/src/webgl/webgl-texture.ts b/src/webgl/webgl-texture.ts index 3f7186a..cfb40c9 100644 --- a/src/webgl/webgl-texture.ts +++ b/src/webgl/webgl-texture.ts @@ -163,6 +163,7 @@ export class WebGLCanvasTexture { dispose() { this.base = undefined; + this.canvas = undefined; if (this.gl != undefined) { const numTextureUnits = this.gl.getParameter(this.gl.MAX_TEXTURE_IMAGE_UNITS);