We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141b1be commit b689301Copy full SHA for b689301
1 file changed
crates/processing_render/src/surface.rs
@@ -411,10 +411,9 @@ pub fn resize(
411
412
// SurfaceSize changes on resize, if not handled will break APIs dependent on correct SurfaceSize
413
for (target, mut surface_size) in graphics_query.iter_mut() {
414
- if let RenderTarget::Window(WindowRef::Entity(surface)) = *target {
415
- if surface == window_entity {
416
- *surface_size = SurfaceSize(width, height);
417
- }
+ if let RenderTarget::Window(WindowRef::Entity(surface)) = *target
+ && surface == window_entity {
+ *surface_size = SurfaceSize(width, height);
418
}
419
420
Ok(())
0 commit comments