Skip to content

Commit

Permalink
fix window resize after wgpu 0.11 upgrade (#2953)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobhellermann committed Oct 15, 2021
1 parent b13357e commit 432ce72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelined/bevy_render2/src/view/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub fn prepare_windows(
};

// Do the initial surface configuration if it hasn't been configured yet
if window_surfaces.configured_windows.insert(window.id) {
if window_surfaces.configured_windows.insert(window.id) || window.size_changed {
render_device.configure_surface(surface, &swap_chain_descriptor);
}

Expand Down

0 comments on commit 432ce72

Please sign in to comment.