fix for multi-submit

submit_rewrite
cosmonaut 2022-01-12 22:04:07 -08:00
parent 53c65fb5eb
commit 62789005dd
1 changed files with 2 additions and 2 deletions

View File

@ -8683,7 +8683,7 @@ static void VULKAN_Submit(
if (renderer->submittedCommandBufferCount + commandBufferCount >= renderer->submittedCommandBufferCapacity) if (renderer->submittedCommandBufferCount + commandBufferCount >= renderer->submittedCommandBufferCapacity)
{ {
renderer->submittedCommandBufferCapacity += commandBufferCount; renderer->submittedCommandBufferCapacity = renderer->submittedCommandBufferCount + commandBufferCount;
renderer->submittedCommandBuffers = SDL_realloc( renderer->submittedCommandBuffers = SDL_realloc(
renderer->submittedCommandBuffers, renderer->submittedCommandBuffers,
@ -8696,8 +8696,8 @@ static void VULKAN_Submit(
{ {
((VulkanCommandBuffer*)pCommandBuffers[i])->submitted = 1; ((VulkanCommandBuffer*)pCommandBuffers[i])->submitted = 1;
renderer->submittedCommandBuffers[renderer->submittedCommandBufferCount] = (VulkanCommandBuffer*) pCommandBuffers[i]; renderer->submittedCommandBuffers[renderer->submittedCommandBufferCount] = (VulkanCommandBuffer*) pCommandBuffers[i];
renderer->submittedCommandBufferCount += 1;
} }
renderer->submittedCommandBufferCount += commandBufferCount;
/* Present, if applicable */ /* Present, if applicable */