Remove workaround for image resize warning (#19397)

# Objective

Follow up for #19116 and #19098

## Testing

viewport_node example
This commit is contained in:
SpecificProtagonist 2025-06-09 21:32:57 +02:00 committed by GitHub
parent 8cd53162bf
commit 860ff7819b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,11 +171,6 @@ pub fn update_viewport_render_target_size(
height: u32::max(1, size.y as u32),
..default()
};
let image = images.get_mut(image_handle).unwrap();
if image.data.is_some() {
image.resize(size);
} else {
image.texture_descriptor.size = size;
}
images.get_mut(image_handle).unwrap().resize(size);
}
}