Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Apr 23, 2024
1 parent 2e4be47 commit e2d0458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu-core/src/command/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -903,12 +903,12 @@ impl Global {
pass: &mut ComputePass<A>,
pipeline_id: id::ComputePipelineId,
) -> Result<(), ComputePassError> {
let reundant = pass.current_pipeline.set_and_check_redundant(pipeline_id);
let redundant = pass.current_pipeline.set_and_check_redundant(pipeline_id);

let scope = PassErrorScope::SetPipelineCompute(pipeline_id);
let base = pass.base_mut(scope)?;

if reundant {
if redundant {
// Do redundant early-out **after** checking whether the pass is ended or not.
return Ok(());
}
Expand Down

0 comments on commit e2d0458

Please sign in to comment.