Merge pull request #462 from yanyu510/master

fix: 解决PointLayer ImageModel频繁调用setData()GPU内存不释放问题
This commit is contained in:
@thinkinggis 2020-08-07 14:49:06 +08:00 committed by GitHub
commit 9636a3b925
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}