ParticleEmitter would fail to draw a textured particle in Canvas mode

This commit is contained in:
Richard Davey 2018-07-29 12:16:42 +01:00
parent 56e1e04da3
commit 34b27fd57a

View file

@ -103,7 +103,7 @@ var ParticleManagerCanvasRenderer = function (renderer, emitterManager, interpol
ctx.scale(particle.scaleX, particle.scaleY);
ctx.drawImage(frame.source.image, cd.sx, cd.sy, cd.sWidth, cd.sHeight, x, y, cd.dWidth, cd.dHeight);
ctx.drawImage(frame.source.image, cd.x, cd.y, cd.width, cd.height, x, y, cd.width, cd.height);
ctx.restore();
}