Skip to content

Commit

Permalink
[fix bug gfx-rs#5430] index_limit judgment error in drawIndexed(index…
Browse files Browse the repository at this point in the history
…Count)

[fix bug gfx-rs#5430] index_limit judgment error in drawIndexed(indexCount)
  • Loading branch information
microaaron committed Mar 25, 2024
1 parent e102e59 commit a4a01d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-core/src/command/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ fn validate_indexed_draw<A: HalApi>(
) -> Result<(), DrawError> {
let last_index = first_index as u64 + index_count as u64;
let index_limit = index_state.limit();
if last_index <= index_limit {
if last_index > index_limit {
return Err(DrawError::IndexBeyondLimit {
last_index,
index_limit,
Expand Down

0 comments on commit a4a01d3

Please sign in to comment.