Skip to content

Commit 9cfc481

Browse files
mockersfcart
authored andcommitted
don't run update before window creation in winit (#10741)
# Objective - Window size, scale and position are not correct on the first execution of the systems - Fixes #10407, fixes #10642 ## Solution - Don't run `update` before we get a chance to create the window in winit - Finish reverting #9826 after #10389
1 parent 5c3c8e7 commit 9cfc481

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

crates/bevy_winit/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,8 @@ impl Default for WinitAppRunnerState {
350350
/// `EventLoop`.
351351
pub fn winit_runner(mut app: App) {
352352
if app.plugins_state() == PluginsState::Ready {
353-
// If we're already ready, we finish up now and advance one frame.
354-
// This prevents black frames during the launch transition on iOS.
355353
app.finish();
356354
app.cleanup();
357-
app.update();
358355
}
359356

360357
let mut event_loop = app

0 commit comments

Comments
 (0)