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:
commit
8bc8eb1772
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user