Skip to content

Commit 368cd4d

Browse files
committed
Switch to TRIANGLE_STRIP
1 parent d6052fd commit 368cd4d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/PenSkin.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ class PenSkin extends Skin {
128128
1, 0,
129129
0, 0,
130130
1, 1,
131-
1, 1,
132-
0, 0,
133131
0, 1
134132
]), gl.STATIC_DRAW);
135133
} else {
@@ -439,8 +437,8 @@ class PenSkin extends Skin {
439437
this.glVertexAttribDivisor(this.a_penPoints_loc, 1);
440438

441439
this.glDrawArraysInstanced(
442-
gl.TRIANGLES,
443-
0, 6,
440+
gl.TRIANGLE_STRIP,
441+
0, 4,
444442
this.attribute_index / PEN_ATTRIBUTE_STRIDE
445443
);
446444

0 commit comments

Comments
 (0)