Skip to content

Commit 6786548

Browse files
authored
Fix max_vertex_buffers validation (#4708)
1 parent 6e21f7a commit 6786548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-core/src/command/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
16881688
}
16891689

16901690
let max_vertex_buffers = device.limits.max_vertex_buffers;
1691-
if slot > max_vertex_buffers {
1691+
if slot >= max_vertex_buffers {
16921692
return Err(RenderCommandError::VertexBufferIndexOutOfRange {
16931693
index: slot,
16941694
max: max_vertex_buffers,

0 commit comments

Comments
 (0)