Remove workaround for image resize warning (#19397)
# Objective Follow up for #19116 and #19098 ## Testing viewport_node example
This commit is contained in:
parent
8cd53162bf
commit
860ff7819b
@ -171,11 +171,6 @@ pub fn update_viewport_render_target_size(
|
|||||||
height: u32::max(1, size.y as u32),
|
height: u32::max(1, size.y as u32),
|
||||||
..default()
|
..default()
|
||||||
};
|
};
|
||||||
let image = images.get_mut(image_handle).unwrap();
|
images.get_mut(image_handle).unwrap().resize(size);
|
||||||
if image.data.is_some() {
|
|
||||||
image.resize(size);
|
|
||||||
} else {
|
|
||||||
image.texture_descriptor.size = size;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user