mirror of https://github.com/xemu-project/xemu.git
nv2a/vk: Don't call vkCmdBindVertexBuffers if 0 bindings
This commit is contained in:
parent
497bac61c9
commit
a80cfc8573
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in New Issue