From 8f413c5b44fe0df8d2554c66a7801ccc0dc59e10 Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Thu, 18 May 2023 11:16:10 -0700 Subject: [PATCH] Fix headless example --- examples/headless/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/headless/src/main.rs b/examples/headless/src/main.rs index 0fa9c7e..ac40765 100644 --- a/examples/headless/src/main.rs +++ b/examples/headless/src/main.rs @@ -104,8 +104,9 @@ async fn render(mut scenes: SceneSet, index: usize, args: &Args) -> Result<()> { resolution: None, base_color: None, interactive: false, + complexity: 0, }; - (example_scene.function)(&mut builder, &mut scene_params); + example_scene.function.render(&mut builder, &mut scene_params); let mut transform = Affine::IDENTITY; let (width, height) = if let Some(resolution) = scene_params.resolution { let ratio = resolution.x / resolution.y;