fix validation error on exit
continuous-integration/drone/push Build is passing Details

pull/6/head
cosmonaut 2022-01-13 12:03:44 -08:00
parent 0ffa045f78
commit 0cd9a2e8e9
1 changed files with 5 additions and 0 deletions

View File

@ -3266,6 +3266,7 @@ static void VULKAN_INTERNAL_RotateBoundUniformBuffers(
for (i = 0; i < uniformBufferPool->submittedBufferCount; i += 1)
{
uniformBufferPool->submittedBuffers[i]->vulkanBuffer->bound = 0;
uniformBufferPool->availableBuffers[uniformBufferPool->availableBufferCount] = uniformBufferPool->submittedBuffers[i];
uniformBufferPool->availableBufferCount += 1;
}
@ -4532,6 +4533,10 @@ static void VULKAN_DestroyDevice(
LogVulkanResultAsError("vkDeviceWaitIdle", waitResult);
}
/* We have to do this twice so the rotation happens correctly */
VULKAN_INTERNAL_PostWorkCleanup(renderer);
VULKAN_INTERNAL_PostWorkCleanup(renderer);
VULKAN_INTERNAL_DestroyBuffer(renderer, renderer->dummyVertexUniformBuffer->vulkanBuffer);
VULKAN_INTERNAL_DestroyBuffer(renderer, renderer->dummyFragmentUniformBuffer->vulkanBuffer);
VULKAN_INTERNAL_DestroyBuffer(renderer, renderer->dummyComputeUniformBuffer->vulkanBuffer);