Skip to content

Commit

Permalink
Fix broken emphasis fill effect #394
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Aug 5, 2020
1 parent 22f0e41 commit db2139c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ class InstancingFillRenderer {
instanceExt.vertexAttribDivisorANGLE(this._aModelMatrixCol2.location, 1);

this._aPosition.bindArrayBuffer(state.positionsBuf);
this._aOffset.bindArrayBuffer(state.offsetsBuf);

this._aFlags.bindArrayBuffer(state.flagsBuf, gl.UNSIGNED_BYTE, true);
instanceExt.vertexAttribDivisorANGLE(this._aFlags.location, 1);
Expand All @@ -66,6 +65,9 @@ class InstancingFillRenderer {
instanceExt.vertexAttribDivisorANGLE(this._aFlags2.location, 1);
}

this._aOffset.bindArrayBuffer(state.offsetsBuf);
instanceExt.vertexAttribDivisorANGLE(this._aOffset.location, 1);

state.indicesBuf.bind();

if (renderPass === RENDER_PASSES.XRAYED) {
Expand Down

0 comments on commit db2139c

Please sign in to comment.