Skip to content

Commit

Permalink
Fix surface resizing in winit examples
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed Jan 24, 2025
1 parent d8ce7bc commit 0085153
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/bootstrap/src/with_winit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ impl<T: ExampleBody> ApplicationHandler for App<T> {
size - Vec2::splat(inset * 2.0),
));
}

if let Some(graphics) = &mut self.graphics {
graphics.resize(self.yak.surface_size().as_uvec2());
}
}

WindowEvent::CloseRequested => {
Expand Down

0 comments on commit 0085153

Please sign in to comment.