diff options
author | 2020-11-11 18:06:27 +0100 | |
---|---|---|
committer | 2020-11-11 18:06:27 +0100 | |
commit | 73811c394a39c3816c67bffd2cf7d7a93c8803a9 (patch) | |
tree | babd079fff2163d147d3d2cec429b17d04a1af9c /wgpu/src/image | |
parent | 2f5a3dacd933a52931a1bb169138d52402413956 (diff) | |
parent | 0400f6716bfb7bcae7d7e464e79e400f3ccc2368 (diff) | |
download | iced-73811c394a39c3816c67bffd2cf7d7a93c8803a9.tar.gz iced-73811c394a39c3816c67bffd2cf7d7a93c8803a9.tar.bz2 iced-73811c394a39c3816c67bffd2cf7d7a93c8803a9.zip |
Merge pull request #610 from hecrj/improvement/update-dependencies
Update dependencies
Diffstat (limited to 'wgpu/src/image')
-rw-r--r-- | wgpu/src/image/vector.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/wgpu/src/image/vector.rs b/wgpu/src/image/vector.rs index 7648aa7e..95df2e99 100644 --- a/wgpu/src/image/vector.rs +++ b/wgpu/src/image/vector.rs @@ -2,8 +2,6 @@ use crate::image::atlas::{self, Atlas}; use iced_native::svg; use std::collections::{HashMap, HashSet}; -use zerocopy::AsBytes; - pub enum Svg { Loaded(resvg::usvg::Tree), NotFound, @@ -119,7 +117,7 @@ impl Cache { let allocation = texture_atlas.upload( width, height, - canvas.get_data().as_bytes(), + bytemuck::cast_slice(canvas.get_data()), device, encoder, )?; |