mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-23 18:06:34 +11:00
Fix headless example
This commit is contained in:
parent
f3587b1240
commit
8f413c5b44
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue