Fix headless example

This commit is contained in:
Raph Levien 2023-05-18 11:16:10 -07:00
parent f3587b1240
commit 8f413c5b44

View file

@ -104,8 +104,9 @@ async fn render(mut scenes: SceneSet, index: usize, args: &Args) -> Result<()> {
resolution: None, resolution: None,
base_color: None, base_color: None,
interactive: false, 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 mut transform = Affine::IDENTITY;
let (width, height) = if let Some(resolution) = scene_params.resolution { let (width, height) = if let Some(resolution) = scene_params.resolution {
let ratio = resolution.x / resolution.y; let ratio = resolution.x / resolution.y;