Skip to content

Commit

Permalink
fixed a bug in _tesselateShape miscounting memory offset for custom a…
Browse files Browse the repository at this point in the history
…ttributes
  • Loading branch information
lukeplowden committed Sep 22, 2024
1 parent 859ac70 commit cafdc1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webgl/p5.RendererGL.Immediate.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ p5.RendererGL.prototype._tesselateShape = function() {
const start = j + offset;
const end = start + size;
this.setAttribute(name, polyTriangles.slice(start, end));
offset = end;
offset += size;
}
}
this.vertex(...polyTriangles.slice(j, j + 5));
Expand Down

0 comments on commit cafdc1b

Please sign in to comment.