From 54eb530f9fa500fa5051064d5f5ad0899eab9270 Mon Sep 17 00:00:00 2001 From: Proton Date: Tue, 26 Jul 2022 09:53:52 +0800 Subject: [PATCH] [misc] Fix warning at GGUI canvas.circles (#5424) --- python/taichi/ui/staging_buffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/taichi/ui/staging_buffer.py b/python/taichi/ui/staging_buffer.py index 2c7174e563c00..bc20e9a81af8b 100644 --- a/python/taichi/ui/staging_buffer.py +++ b/python/taichi/ui/staging_buffer.py @@ -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