Skip to content

Commit

Permalink
fix wrong count buffer id (#6194)
Browse files Browse the repository at this point in the history
Co-authored-by: Jasper Wu <wuq141@vanke.com>
  • Loading branch information
BlackStone1123 and Jasper Wu authored Sep 2, 2024
1 parent 26398ea commit 8eb0e64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu-core/src/command/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3162,7 +3162,7 @@ impl Global {
.map_err(|_| RenderPassErrorInner::InvalidBuffer(buffer_id))
.map_pass_err(scope)?;
let count_buffer = buffers
.get_owned(buffer_id)
.get_owned(count_buffer_id)
.map_err(|_| RenderPassErrorInner::InvalidBuffer(count_buffer_id))
.map_pass_err(scope)?;

Expand Down Expand Up @@ -3203,7 +3203,7 @@ impl Global {
.map_pass_err(scope)?;

let count_buffer = buffers
.get_owned(buffer_id)
.get_owned(count_buffer_id)
.map_err(|_| RenderPassErrorInner::InvalidBuffer(count_buffer_id))
.map_pass_err(scope)?;

Expand Down

0 comments on commit 8eb0e64

Please sign in to comment.