From f4be74c07f106ba9973925e1b193ae9a11911269 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 10 Apr 2021 18:12:21 +0200 Subject: [PATCH] winit: fix n_trans count Signed-off-by: Elias Naur --- piet-gpu/bin/winit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piet-gpu/bin/winit.rs b/piet-gpu/bin/winit.rs index 51004cd..e8a7f32 100644 --- a/piet-gpu/bin/winit.rs +++ b/piet-gpu/bin/winit.rs @@ -40,7 +40,7 @@ fn main() -> Result<(), Error> { render_scene(&mut ctx); let n_paths = ctx.path_count(); let n_pathseg = ctx.pathseg_count(); - let n_trans = ctx.pathseg_count(); + let n_trans = ctx.trans_count(); let scene = ctx.get_scene_buf(); let renderer = Renderer::new(&session, scene, n_paths, n_pathseg, n_trans)?;