Skip to content

Commit

Permalink
Fixing clippy wasm32
Browse files Browse the repository at this point in the history
  • Loading branch information
gents83 committed Sep 8, 2023
1 parent 490b2b7 commit 451dfba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wgpu-core/src/device/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,6 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
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) {
Expand Down Expand Up @@ -1045,8 +1044,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
{
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,
Expand Down Expand Up @@ -1090,7 +1088,6 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
.textures
.set_single(
&dst,
destination.texture,
selector,
hal::TextureUses::COPY_DST,
)
Expand Down

0 comments on commit 451dfba

Please sign in to comment.