summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-20 10:28:56 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-20 10:29:11 +0100
commit209056e1cd0fd74f508e11de2233123cc951640b (patch)
tree41c480e4e4024035cf71e47374eb3264e17c3500 /wgpu
parent1af6fb3ec0e523fa842a3380e77bba1e9940ba0d (diff)
downloadiced-209056e1cd0fd74f508e11de2233123cc951640b.tar.gz
iced-209056e1cd0fd74f508e11de2233123cc951640b.tar.bz2
iced-209056e1cd0fd74f508e11de2233123cc951640b.zip
Fix deprecation warnings from `image`
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/image/raster.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/wgpu/src/image/raster.rs b/wgpu/src/image/raster.rs
index 4f69df8c..25607dab 100644
--- a/wgpu/src/image/raster.rs
+++ b/wgpu/src/image/raster.rs
@@ -43,14 +43,14 @@ impl Cache {
let memory = match handle.data() {
image::Data::Path(path) => {
if let Ok(image) = ::image::open(path) {
- Memory::Host(image.to_bgra())
+ Memory::Host(image.to_bgra8())
} else {
Memory::NotFound
}
}
image::Data::Bytes(bytes) => {
if let Ok(image) = ::image::load_from_memory(&bytes) {
- Memory::Host(image.to_bgra())
+ Memory::Host(image.to_bgra8())
} else {
Memory::Invalid
}