diff --git a/wgpu-core/src/command/render.rs b/wgpu-core/src/command/render.rs index bda4addb13..59246d00ba 100644 --- a/wgpu-core/src/command/render.rs +++ b/wgpu-core/src/command/render.rs @@ -1688,7 +1688,7 @@ impl Global { } let max_vertex_buffers = device.limits.max_vertex_buffers; - if slot > max_vertex_buffers { + if slot >= max_vertex_buffers { return Err(RenderCommandError::VertexBufferIndexOutOfRange { index: slot, max: max_vertex_buffers,