Skip to content

Commit

Permalink
Touchup
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Dec 1, 2022
1 parent d3091f9 commit 3c8ed51
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion wgpu-core/src/device/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,6 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
extract_texture_selector(destination, size, dst)?;
let format_desc = texture_format.describe();

let dst = texture_guard.get_mut(destination.texture).unwrap();
if !dst.desc.usage.contains(wgt::TextureUsages::COPY_DST) {
return Err(
TransferError::MissingCopyDstUsageFlag(None, Some(destination.texture)).into(),
Expand Down

0 comments on commit 3c8ed51

Please sign in to comment.