fix sub buffer index oversight

submit_rewrite
cosmonaut 2020-12-22 23:46:37 -08:00
parent 25314dad57
commit d2d2dee5f4
1 changed files with 1 additions and 1 deletions

View File

@ -4829,7 +4829,7 @@ static void VULKAN_BindVertexBuffers(
for (i = 0; i < bindingCount; i += 1)
{
currentBuffer = (VulkanBuffer*) pBuffers[i];
buffers[i] = currentBuffer->subBuffers[0]->buffer; // FIXME: testing
buffers[i] = currentBuffer->subBuffers[currentBuffer->currentSubBufferIndex]->buffer;
VULKAN_INTERNAL_MarkAsBound(renderer, currentBuffer);
}