From 6e90f5a290a1b2c74128a06f447e74df393e5115 Mon Sep 17 00:00:00 2001 From: yy Date: Thu, 30 Jul 2020 23:13:33 +0800 Subject: [PATCH] =?UTF-8?q?PointLayer=20ImageModel=E9=A2=91=E7=B9=81?= =?UTF-8?q?=E8=B0=83=E7=94=A8setData()GPU=E5=86=85=E5=AD=98=E4=B8=8D?= =?UTF-8?q?=E9=87=8A=E6=94=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/layers/src/point/models/image.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/layers/src/point/models/image.ts b/packages/layers/src/point/models/image.ts index 5f878940a2..50ce206c93 100644 --- a/packages/layers/src/point/models/image.ts +++ b/packages/layers/src/point/models/image.ts @@ -38,6 +38,9 @@ export default class ImageModel extends BaseModel { } public clearModels() { + if(this.texture){ + this.texture.destroy(); + } this.iconService.off('imageUpdate', this.updateTexture); }