Skip to content

Commit

Permalink
fix errors from resource builder
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bk committed Mar 23, 2024
1 parent 210e285 commit 3cd4b70
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions resources/MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
#
# When you add a new resource, make sure to add it to this file.

textures/area-lut.png
textures/gamma-lut.png
2 changes: 1 addition & 1 deletion resources/MANIFEST.gl4
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ shaders/gl4/demo_ground.vs.glsl
shaders/gl4/reproject.fs.glsl
shaders/gl4/reproject.vs.glsl
shaders/gl4/stencil.fs.glsl
shaders/gl4/stencil.vs.
shaders/gl4/stencil.vs.glsl
2 changes: 1 addition & 1 deletion resources/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fn main() {
add_manifest("MANIFEST");

for part in ["debug", "gl3", "gl4", "metal"] {
let key = format!("CARGO_FEATURE_{part}");
let key = format!("CARGO_FEATURE_{}", part.to_ascii_uppercase());
if env::var(&key).is_ok() {
add_manifest(&format!("MANIFEST.{part}"));
}
Expand Down
2 changes: 1 addition & 1 deletion resources/src/embedded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl ResourceLoader for EmbeddedResourceLoader {
fn slurp(&self, virtual_path: &str) -> Result<Vec<u8>, IOError> {
match RESOURCES.iter().filter(|&(path, _)| *path == virtual_path).next() {
Some((_, data)) => Ok(data.to_vec()),
None => Err(IOError::from(ErrorKind::NotFound)),
None => Err(IOError::new(ErrorKind::NotFound, virtual_path)),
}
}
}

0 comments on commit 3cd4b70

Please sign in to comment.