Skip to content

Commit

Permalink
Ensure more explicit system ordering for preparing view target. (#15000)
Browse files Browse the repository at this point in the history
Fixes #14993 (maybe). Adds a system ordering constraint that was missed
in the refactor in #14833. The theory here is that the single threaded
forces a topology that causes the prepare system to run before
`prepare_windows` in a way that causes issues. For whatever reason, this
appears to be unlikely when multi-threading is enabled.
  • Loading branch information
tychedelia authored Aug 31, 2024
1 parent 4bea611 commit f0560b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy_render/src/view/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ impl Plugin for ViewPlugin {
(
prepare_view_attachments
.in_set(RenderSet::ManageViews)
.before(prepare_view_targets),
.before(prepare_view_targets)
.after(prepare_windows),
prepare_view_targets
.in_set(RenderSet::ManageViews)
.after(prepare_windows)
Expand Down

0 comments on commit f0560b8

Please sign in to comment.