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
					
				| @ -136,7 +136,7 @@ pub fn prepare_windows( | |||||||
|         }; |         }; | ||||||
| 
 | 
 | ||||||
|         // Do the initial surface configuration if it hasn't been configured yet
 |         // 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); |             render_device.configure_surface(surface, &swap_chain_descriptor); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Jakob Hellermann
						Jakob Hellermann