@vunk/plus 1.11.5 → 1.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1339,6 +1339,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1339
1339
|
});
|
|
1340
1340
|
sprite.texture = texture;
|
|
1341
1341
|
function updateTextureFromBitmap(bitmap) {
|
|
1342
|
+
texture.source.resource?.close();
|
|
1342
1343
|
texture.source.destroy();
|
|
1343
1344
|
const source = new ImageSource({
|
|
1344
1345
|
resource: bitmap
|
|
@@ -1426,6 +1427,7 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1426
1427
|
});
|
|
1427
1428
|
sprite.texture = texture;
|
|
1428
1429
|
function updateTextureFromBitmap(bitmap) {
|
|
1430
|
+
texture.source?.resource?.close();
|
|
1429
1431
|
texture.source?.destroy();
|
|
1430
1432
|
const source = new ImageSource({
|
|
1431
1433
|
resource: bitmap
|