From 451dfba55890769e48d4b25abdb66af8ce388b39 Mon Sep 17 00:00:00 2001 From: gents83 Date: Sat, 9 Sep 2023 00:46:33 +0200 Subject: [PATCH] Fixing clippy wasm32 --- wgpu-core/src/device/queue.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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, )