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 mvf = sre * cmb + srf * cmd + cmf;
pathArray.length = 0;
for (var cmdIndex = 0, cmdLength = commands.length; cmdIndex < cmdLength; ++cmdIndex)
{
cmd = commands[cmdIndex];

View file

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