Skip to content

Commit 20dbe21

Browse files
committed
Draw lines as lines instead of line strips
1 parent 8b1db3b commit 20dbe21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vlib/gg/draw.c.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub fn (ctx &Context) draw_line(x f32, y f32, x2 f32, y2 f32, c Color) {
7575
}
7676
sgl.c4b(c.r, c.g, c.b, c.a)
7777

78-
sgl.begin_line_strip()
78+
sgl.begin_lines()
7979
sgl.v2f(x * ctx.scale, y * ctx.scale)
8080
sgl.v2f(x2 * ctx.scale, y2 * ctx.scale)
8181
sgl.end()

0 commit comments

Comments
 (0)