diff options
author | 2023-05-12 11:53:02 +0200 | |
---|---|---|
committer | 2023-05-12 11:53:02 +0200 | |
commit | 9706c99310d6fc7fedf40e579e652634ad8c2a87 (patch) | |
tree | 4db36140bff155342995d34ddc21ce93ceb2e8d7 /wgpu/src/image/vector.rs | |
parent | cf434236e7e15e0fa05e5915b8d4d78dcaf1b7e8 (diff) | |
parent | 0ef5ab6c84643784d37801598c68a259f0ca64ff (diff) | |
download | iced-9706c99310d6fc7fedf40e579e652634ad8c2a87.tar.gz iced-9706c99310d6fc7fedf40e579e652634ad8c2a87.tar.bz2 iced-9706c99310d6fc7fedf40e579e652634ad8c2a87.zip |
Merge pull request #1847 from iced-rs/fix/image-atlas-race-condition
Fix race condition when growing an `image::Atlas`
Diffstat (limited to 'wgpu/src/image/vector.rs')
-rw-r--r-- | wgpu/src/image/vector.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/wgpu/src/image/vector.rs b/wgpu/src/image/vector.rs index 58bdf64a..6b9be651 100644 --- a/wgpu/src/image/vector.rs +++ b/wgpu/src/image/vector.rs @@ -74,7 +74,6 @@ impl Cache { pub fn upload( &mut self, device: &wgpu::Device, - queue: &wgpu::Queue, encoder: &mut wgpu::CommandEncoder, handle: &svg::Handle, color: Option<Color>, @@ -138,8 +137,8 @@ impl Cache { }); } - let allocation = atlas - .upload(device, queue, encoder, width, height, &rgba)?; + let allocation = + atlas.upload(device, encoder, width, height, &rgba)?; log::debug!("allocating {} {}x{}", id, width, height); |