Browse Source

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
Tim van der Meij 10 years ago
parent
commit
8bc8eb1772
  1. 2
      src/display/webgl.js

2
src/display/webgl.js

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

Loading…
Cancel
Save