diff --git a/vlib/gg/gg.v b/vlib/gg/gg.v index f0ea427176..1282fb571f 100644 --- a/vlib/gg/gg.v +++ b/vlib/gg/gg.v @@ -299,7 +299,7 @@ pub fn (ctx &Context) draw_triangle(x f32, y f32, x2 f32, y2 f32, x3 f32, y3 f32 sgl.load_pipeline(ctx.timage_pip) } sgl.c4b(c.r, c.g, c.b, c.a) - sgl.begin_quads() + sgl.begin_triangles() sgl.v2f(x * ctx.scale, y * ctx.scale) sgl.v2f(x2 * ctx.scale, y2 * ctx.scale) sgl.v2f(x3 * ctx.scale, y3 * ctx.scale)