diff options
author | 2023-05-11 20:18:36 +0200 | |
---|---|---|
committer | 2023-05-11 20:18:36 +0200 | |
commit | f02f0c01ea9b46b3b303c805b4e001a3f10be748 (patch) | |
tree | 1e8ee8c6c4e758f8165b3ac26c5b31f1c4b04aad /wgpu/src/image/vector.rs | |
parent | cf434236e7e15e0fa05e5915b8d4d78dcaf1b7e8 (diff) | |
download | iced-f02f0c01ea9b46b3b303c805b4e001a3f10be748.tar.gz iced-f02f0c01ea9b46b3b303c805b4e001a3f10be748.tar.bz2 iced-f02f0c01ea9b46b3b303c805b4e001a3f10be748.zip |
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); |