Skip to content

Commit

Permalink
dispose canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
Longi94 committed Dec 8, 2019
1 parent 5e429ba commit 456093e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/webgl/webgl-texture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 456093e

Please sign in to comment.