diff --git a/wgpu-core/src/device/queue.rs b/wgpu-core/src/device/queue.rs index 46908b9f27..3a0fe9e50d 100644 --- a/wgpu-core/src/device/queue.rs +++ b/wgpu-core/src/device/queue.rs @@ -944,7 +944,6 @@ impl Global { let src_width = source.source.width(); let src_height = source.source.height(); - let texture_guard = hub.textures.read(); let dst = hub.textures.get(destination.texture).unwrap(); if !conv::is_valid_external_image_copy_dst_texture_format(dst.desc.format) { @@ -1045,8 +1044,7 @@ impl Global { { let mut trackers = device.trackers.lock(); crate::command::clear_texture( - &*texture_guard, - destination.texture, + &dst, TextureInitRange { mip_range: destination.mip_level..(destination.mip_level + 1), layer_range, @@ -1090,7 +1088,6 @@ impl Global { .textures .set_single( &dst, - destination.texture, selector, hal::TextureUses::COPY_DST, )