mirror of https://gitee.com/antv-l7/antv-l7
Merge pull request #462 from yanyu510/master
fix: 解决PointLayer ImageModel频繁调用setData()GPU内存不释放问题
This commit is contained in:
commit
9636a3b925
|
@ -38,6 +38,9 @@ export default class ImageModel extends BaseModel {
|
|||
}
|
||||
|
||||
public clearModels() {
|
||||
if(this.texture){
|
||||
this.texture.destroy();
|
||||
}
|
||||
this.iconService.off('imageUpdate', this.updateTexture);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue