Fixed issue with scrolling on static tilemaps and not clearing path array on Flat Pipeline

This commit is contained in:
Felipe Alfonso 2018-01-26 00:47:41 -03:00
parent 00382bf059
commit 83b7d11f14
2 changed files with 4 additions and 2 deletions

View file

@ -524,6 +524,8 @@ var FlatTintPipeline = new Class({
var mve = sre * cma + srf * cmc + cme; var mve = sre * cma + srf * cmc + cme;
var mvf = sre * cmb + srf * cmd + cmf; var mvf = sre * cmb + srf * cmd + cmf;
pathArray.length = 0;
for (var cmdIndex = 0, cmdLength = commands.length; cmdIndex < cmdLength; ++cmdIndex) for (var cmdIndex = 0, cmdLength = commands.length; cmdIndex < cmdLength; ++cmdIndex)
{ {
cmd = commands[cmdIndex]; cmd = commands[cmdIndex];

View file

@ -104,8 +104,8 @@ var TextureTintPipeline = new Class({
this.vertexBuffer = pipelineVertexBuffer; this.vertexBuffer = pipelineVertexBuffer;
} }
if (this.viewMatrixDirty) this.viewIdentity(); this.viewIdentity();
if (this.modelMatrixDirty) this.modelIdentity(); this.modelIdentity();
}, },
drawEmitterManager: function (emitterManager, camera) drawEmitterManager: function (emitterManager, camera)