mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
fix window resize after wgpu 0.11 upgrade (#2953)
The fix originally got introduced in [#2858](https://github.com/bevyengine/bevy/pull/2858/files#diff-0f34eeda7ac2fe1f9e9b27de92d9290e0b360ffa6f032770aff22b5fef4eaa63R137-R143) but got lost in the upgrade to wgpu 0.11 at https://github.com/bevyengine/bevy/pull/2933
This commit is contained in:
parent
b13357e7b2
commit
432ce72faf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue