Skip to content

Commit

Permalink
[misc] Fix warning at GGUI canvas.circles (taichi-dev#5424)
Browse files Browse the repository at this point in the history
  • Loading branch information
feisuzhu committed Jul 26, 2022
1 parent 0e02562 commit 54eb530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/taichi/ui/staging_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def copy_colors_to_vbo(vbo, colors):
raise Exception('colors can only be 3D/4D vector fields')
copy_to_vbo(vbo, colors, 8, colors.n)
if colors.n == 3:
fill_vbo(vbo, 1.0, 11, 1)
fill_vbo(vbo, ti.cast(1.0, ti.f32), 11, 1)


@ti.kernel
Expand Down

0 comments on commit 54eb530

Please sign in to comment.