Merge pull request #6354 from Snuffleupagus/webgl-shadingPattern-drawFigures-triangles-typo

Fix typo in `drawFigures`, in webgl.js, which causes shadingPatterns with `figure.type === triangles` to render incorrectly
This commit is contained in:
Tim van der Meij 2015-08-14 00:27:57 +02:00
commit 8bc8eb1772

View File

@ -360,7 +360,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
for (var j = 0, jj = ps.length; j < jj; j++) {
coords[pIndex] = coordsMap[ps[j]];
coords[pIndex + 1] = coordsMap[ps[j] + 1];
colors[cIndex] = colorsMap[cs[i]];
colors[cIndex] = colorsMap[cs[j]];
colors[cIndex + 1] = colorsMap[cs[j] + 1];
colors[cIndex + 2] = colorsMap[cs[j] + 2];
pIndex += 2;