forked from MoonsideGames/Refresh
fix for multi-submit
parent
53c65fb5eb
commit
62789005dd
|
@ -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 */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue