diff options
author | 2020-02-26 18:49:46 +0100 | |
---|---|---|
committer | 2020-02-26 18:50:13 +0100 | |
commit | 48d70280eb4f5908f1c9339bebdfbab856d55ae1 (patch) | |
tree | a09413f997f3225b307e4f8d4b4981c9d33bb49e /wgpu/src/image | |
parent | c58d94f3fda40f215254008ec105aeab56085b0e (diff) | |
download | iced-48d70280eb4f5908f1c9339bebdfbab856d55ae1.tar.gz iced-48d70280eb4f5908f1c9339bebdfbab856d55ae1.tar.bz2 iced-48d70280eb4f5908f1c9339bebdfbab856d55ae1.zip |
Fix multiple issues from the refactoring
- Update texture view on grow
- Fix atlas texture coordinates
- Fix fragmented uploads
Diffstat (limited to 'wgpu/src/image')
-rw-r--r-- | wgpu/src/image/raster.rs | 5 |
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 { |