Skip to content

Commit

Permalink
Merge pull request #630 from guycalledfrank/fixtexdel
Browse files Browse the repository at this point in the history
fix texture deletion
  • Loading branch information
guycalledfrank committed Jun 8, 2016
2 parents 68633c5 + cc914c0 commit 29da296
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/graphics/texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ pc.extend(pc, function () {
var gl = this.device.gl;
gl.deleteTexture(this._glTextureId);
this.device._vram.tex -= this._gpuSize;
this._glTextureId = null;
}
},

Expand Down

0 comments on commit 29da296

Please sign in to comment.