Skip to content

Commit

Permalink
fix: destruction error of sprites with the same texture
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr.Mao committed Jun 6, 2024
1 parent 59fb5d5 commit a4328b1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/vue3-pixi/src/renderer/internal/default-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ const SpriteRender: RendererOptions = {
name: 'Sprite',
createElement: props => new Sprite(normalizeTexture(props.texture)),
remove(node: Sprite) {
const texture = node.texture
texture?.baseTexture.destroy()
node.destroy()
},
}
Expand Down

0 comments on commit a4328b1

Please sign in to comment.