fix incorrect index

submit_rewrite
cosmonaut 2022-01-12 22:00:08 -08:00
parent 0e05ed6b34
commit 53c65fb5eb
1 changed files with 2 additions and 2 deletions

View File

@ -8692,10 +8692,10 @@ static void VULKAN_Submit(
} }
/* Mark command buffers as submitted */ /* Mark command buffers as submitted */
for (i = renderer->submittedCommandBufferCount; i < commandBufferCount; i += 1) for (i = 0; i < commandBufferCount; i += 1)
{ {
((VulkanCommandBuffer*)pCommandBuffers[i])->submitted = 1; ((VulkanCommandBuffer*)pCommandBuffers[i])->submitted = 1;
renderer->submittedCommandBuffers[i] = (VulkanCommandBuffer*) pCommandBuffers[i]; renderer->submittedCommandBuffers[renderer->submittedCommandBufferCount] = (VulkanCommandBuffer*) pCommandBuffers[i];
} }
renderer->submittedCommandBufferCount += commandBufferCount; renderer->submittedCommandBufferCount += commandBufferCount;