Skip to content

Commit

Permalink
fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JoJoJet committed Aug 4, 2022
1 parent a532914 commit 042899d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/bevy_render/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl Plugin for RenderPlugin {
// prepare
let prepare = render_app
.schedule
.get_stage_mut::<SystemStage>(&RenderStage::Prepare)
.get_stage_mut::<SystemStage>(RenderStage::Prepare.as_label())
.unwrap();
prepare.run(&mut render_app.world);
}
Expand All @@ -259,7 +259,7 @@ impl Plugin for RenderPlugin {
// queue
let queue = render_app
.schedule
.get_stage_mut::<SystemStage>(&RenderStage::Queue)
.get_stage_mut::<SystemStage>(RenderStage::Queue.as_label())
.unwrap();
queue.run(&mut render_app.world);
}
Expand All @@ -272,7 +272,7 @@ impl Plugin for RenderPlugin {
// phase sort
let phase_sort = render_app
.schedule
.get_stage_mut::<SystemStage>(&RenderStage::PhaseSort)
.get_stage_mut::<SystemStage>(RenderStage::PhaseSort.as_label())
.unwrap();
phase_sort.run(&mut render_app.world);
}
Expand All @@ -285,7 +285,7 @@ impl Plugin for RenderPlugin {
// render
let render = render_app
.schedule
.get_stage_mut::<SystemStage>(&RenderStage::Render)
.get_stage_mut::<SystemStage>(RenderStage::Render.as_label())
.unwrap();
render.run(&mut render_app.world);
}
Expand All @@ -298,7 +298,7 @@ impl Plugin for RenderPlugin {
// cleanup
let cleanup = render_app
.schedule
.get_stage_mut::<SystemStage>(&RenderStage::Cleanup)
.get_stage_mut::<SystemStage>(RenderStage::Cleanup.as_label())
.unwrap();
cleanup.run(&mut render_app.world);
}
Expand Down Expand Up @@ -332,7 +332,7 @@ struct ScratchMainWorld(World);
fn extract(app_world: &mut World, render_app: &mut App) {
let extract = render_app
.schedule
.get_stage_mut::<SystemStage>(&RenderStage::Extract)
.get_stage_mut::<SystemStage>(RenderStage::Extract.as_label())
.unwrap();

// temporarily add the app world to the render world as a resource
Expand Down

0 comments on commit 042899d

Please sign in to comment.