PointLayer ImageModel频繁调用setData()GPU内存不释放问题

This commit is contained in:
yy 2020-07-30 23:13:33 +08:00
parent bd31ae7f88
commit 6e90f5a290
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ export default class ImageModel extends BaseModel {
}
public clearModels() {
if(this.texture){
this.texture.destroy();
}
this.iconService.off('imageUpdate', this.updateTexture);
}