Skip to content

Commit

Permalink
SpriteRenderer pseudo-leak (#4900)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpopelyshev authored and GoodBoyDigital committed May 8, 2018
1 parent 728cc22 commit 8de9440
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/sprites/webgl/SpriteRenderer.js
Expand Up @@ -261,6 +261,8 @@ export default class SpriteRenderer extends ObjectRenderer
// they have all ready been calculated so we just need to push them into the buffer.
const sprite = sprites[i];

sprites[i] = null;

nextTexture = sprite._texture.baseTexture;

const spriteBlendMode = premultiplyBlendMode[Number(nextTexture.premultipliedAlpha)][sprite.blendMode];
Expand Down

0 comments on commit 8de9440

Please sign in to comment.