fix create_surfaces system ordering (#11747)

# Objective

- System `create_surfaces` needs to happen before `prepare_windows` or
we lose one frame at startup

## Solution

- Specify the ordering, remove the set as it doesn't mean anything there
This commit is contained in:
François 2024-02-07 00:27:17 +01:00 committed by GitHub
parent 4c15dd0fc5
commit 75d383fa1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@ impl Plugin for WindowRenderPlugin {
Render,
create_surfaces
.run_if(need_new_surfaces)
.in_set(RenderSet::PrepareAssets),
.before(prepare_windows),
)
.add_systems(Render, prepare_windows.in_set(RenderSet::ManageViews));
}