summaryrefslogtreecommitdiffstats
path: root/wgpu/src/image/raster.rs
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu/src/image/raster.rs')
-rw-r--r--wgpu/src/image/raster.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/wgpu/src/image/raster.rs b/wgpu/src/image/raster.rs
index 8d2f342e..b19da582 100644
--- a/wgpu/src/image/raster.rs
+++ b/wgpu/src/image/raster.rs
@@ -83,10 +83,9 @@ impl Cache {
if let Memory::Host(image) = memory {
let (width, height) = image.dimensions();
- let allocation =
- atlas.upload(width, height, &image, device, encoder)?;
+ let entry = atlas.upload(width, height, &image, device, encoder)?;
- *memory = Memory::Device(allocation);
+ *memory = Memory::Device(entry);
}
if let Memory::Device(allocation) = memory {