nv2a/vk: Don't call vkCmdBindVertexBuffers if 0 bindings

This commit is contained in:
Matt Borgerson 2024-07-26 17:21:01 -07:00 committed by mborgerson
parent 497bac61c9
commit a80cfc8573
1 changed files with 4 additions and 0 deletions

View File

@ -1796,6 +1796,10 @@ static void bind_vertex_buffer(PGRAPHState *pg, int buffer_idx,
assert(buffer_idx == BUFFER_VERTEX_RAM ||
buffer_idx == BUFFER_VERTEX_INLINE);
if (r->num_active_vertex_binding_descriptions == 0) {
return;
}
VkBuffer buffers[NV2A_VERTEXSHADER_ATTRIBUTES];
VkDeviceSize offsets[NV2A_VERTEXSHADER_ATTRIBUTES];