fix: destroy image texture

This commit is contained in:
cha0s 2019-04-14 16:11:01 -05:00
parent 1291d9fe6a
commit a03f5ab617

View File

@ -9,6 +9,10 @@ export class Image extends Resource {
this.texture = null;
}
destroy() {
this.texture.destroy();
}
static load(uri) {
return this.loadBaseTexture(uri).then((baseTexture) => {
const image = new Image();