Skip to content

Commit

Permalink
Update crates/bevy_render/src/render_resource/shader.rs
Browse files Browse the repository at this point in the history
Co-authored-by: François <[email protected]>
  • Loading branch information
cart and mockersf authored Nov 11, 2023
1 parent 73156be commit 628a22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/render_resource/shader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl AssetLoader for ShaderLoader {
let path = load_context.asset_path().to_string();
// On windows, the path will inconsistently use \ or /.
// TODO: remove this once AssetPath forces cross-platform "slash" consistency. See #10511
let path = path.replace("\\", "/");
let path = path.replace(std::path::MAIN_SEPARATOR, "/");
let mut bytes = Vec::new();
reader.read_to_end(&mut bytes).await?;
let mut shader = match ext {
Expand Down

0 comments on commit 628a22a

Please sign in to comment.