gg: fix draw arch functions alpha color (#14850)

This commit is contained in:
Emirhan Yener 2022-06-26 00:03:43 +03:00 committed by GitHub
parent d7f962ef6e
commit d42aadda0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -658,6 +658,10 @@ pub fn (ctx &Context) draw_arc_empty(x f32, y f32, inner_radius f32, thickness f
return return
} }
if c.a != 255 {
sgl.load_pipeline(ctx.timage_pip)
}
mut a1 := start_angle mut a1 := start_angle
mut a2 := end_angle mut a2 := end_angle
@ -721,6 +725,10 @@ pub fn (ctx &Context) draw_arc_filled(x f32, y f32, inner_radius f32, thickness
return return
} }
if c.a != 255 {
sgl.load_pipeline(ctx.timage_pip)
}
mut a1 := start_angle mut a1 := start_angle
mut a2 := end_angle mut a2 := end_angle