fix: destroy image texture
This commit is contained in:
parent
1291d9fe6a
commit
a03f5ab617
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user