Skip to content

Commit 83b7d11

Browse files
committed
Fixed issue with scrolling on static tilemaps and not clearing path array on Flat Pipeline
1 parent 00382bf commit 83b7d11

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/renderer/webgl/pipelines/FlatTintPipeline.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,8 @@ var FlatTintPipeline = new Class({
524524
var mve = sre * cma + srf * cmc + cme;
525525
var mvf = sre * cmb + srf * cmd + cmf;
526526

527+
pathArray.length = 0;
528+
527529
for (var cmdIndex = 0, cmdLength = commands.length; cmdIndex < cmdLength; ++cmdIndex)
528530
{
529531
cmd = commands[cmdIndex];

src/renderer/webgl/pipelines/TextureTintPipeline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ var TextureTintPipeline = new Class({
104104
this.vertexBuffer = pipelineVertexBuffer;
105105
}
106106

107-
if (this.viewMatrixDirty) this.viewIdentity();
108-
if (this.modelMatrixDirty) this.modelIdentity();
107+
this.viewIdentity();
108+
this.modelIdentity();
109109
},
110110

111111
drawEmitterManager: function (emitterManager, camera)

0 commit comments

Comments
 (0)