mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-09 20:31:29 +11:00
Fix include_str! compile error in examples/scenes. (#279)
I don't think CARGO_MANIFEST_DIR should ever end in "/", though I've only checked on Linux and macOS.
This commit is contained in:
parent
68022d2f4f
commit
5f59a2e818
|
@ -243,7 +243,7 @@ fn included_tiger() -> impl FnMut(&mut SceneBuilder, &mut SceneParams) {
|
|||
let (scene_frag, resolution) = cached_scene.get_or_insert_with(|| {
|
||||
let contents = include_str!(concat!(
|
||||
env!("CARGO_MANIFEST_DIR"),
|
||||
"../../assets/Ghostscript_Tiger.svg"
|
||||
"/../assets/Ghostscript_Tiger.svg"
|
||||
));
|
||||
let svg = usvg::Tree::from_str(&contents, &usvg::Options::default())
|
||||
.expect("failed to parse svg file");
|
||||
|
|
Loading…
Reference in a new issue