Fixed multiple command buffer submissions

pull/1/head
David Weil 2022-01-03 13:33:48 -08:00 committed by cosmonaut
parent c7666cd8fc
commit c51b4e95d2
1 changed files with 1 additions and 2 deletions

View File

@ -8160,7 +8160,6 @@ static void VULKAN_Submit(
);
}
}
renderer->submittedCommandBufferCount = 0;
/* Prepare the command buffer fence for submission */
renderer->vkResetFences(
@ -8197,7 +8196,7 @@ static void VULKAN_Submit(
for (i = 0; i < commandBufferCount; i += 1)
{
((VulkanCommandBuffer*)pCommandBuffers[i])->submitted = 1;
renderer->submittedCommandBuffers[renderer->submittedCommandBufferCount] = (VulkanCommandBuffer*) pCommandBuffers[i];
renderer->submittedCommandBuffers[i] = (VulkanCommandBuffer*) pCommandBuffers[i];
}
renderer->submittedCommandBufferCount = commandBufferCount;