Skip to content

Commit cafdc1b

Browse files
committed
fixed a bug in _tesselateShape miscounting memory offset for custom attributes
1 parent 859ac70 commit cafdc1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webgl/p5.RendererGL.Immediate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ p5.RendererGL.prototype._tesselateShape = function() {
517517
const start = j + offset;
518518
const end = start + size;
519519
this.setAttribute(name, polyTriangles.slice(start, end));
520-
offset = end;
520+
offset += size;
521521
}
522522
}
523523
this.vertex(...polyTriangles.slice(j, j + 5));

0 commit comments

Comments
 (0)