Skip to content

Commit 432ce72

Browse files
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 #2933
1 parent b13357e commit 432ce72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipelined/bevy_render2/src/view/window.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub fn prepare_windows(
136136
};
137137

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

0 commit comments

Comments
 (0)