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;