some cleanup

submit_rewrite
cosmonaut 2020-12-30 20:41:42 -08:00 committed by thatcosmonaut
parent 5b3fa07790
commit 08c4f8a24f
1 changed files with 14 additions and 0 deletions

View File

@ -3280,8 +3280,10 @@ static void VULKAN_DestroyDevice(
VULKAN_INTERNAL_DestroyBuffer(renderer, renderer->dummyVertexUniformBuffer);
VULKAN_INTERNAL_DestroyBuffer(renderer, renderer->dummyFragmentUniformBuffer);
VULKAN_INTERNAL_DestroyBuffer(renderer, renderer->dummyComputeUniformBuffer);
VULKAN_INTERNAL_DestroyBuffer(renderer, renderer->vertexUBO);
VULKAN_INTERNAL_DestroyBuffer(renderer, renderer->fragmentUBO);
VULKAN_INTERNAL_DestroyBuffer(renderer, renderer->computeUBO);
/* We have to do this twice so the rotation happens correctly */
VULKAN_INTERNAL_PostWorkCleanup(renderer);
@ -3379,6 +3381,12 @@ static void VULKAN_DestroyDevice(
NULL
);
renderer->vkDestroyDescriptorSetLayout(
renderer->logicalDevice,
renderer->emptyComputeImageDescriptorSetLayout,
NULL
);
renderer->vkDestroyDescriptorSetLayout(
renderer->logicalDevice,
renderer->vertexParamLayout,
@ -3391,6 +3399,12 @@ static void VULKAN_DestroyDevice(
NULL
);
renderer->vkDestroyDescriptorSetLayout(
renderer->logicalDevice,
renderer->computeParamLayout,
NULL
);
VULKAN_INTERNAL_DestroySwapchain(renderer);
if (!renderer->headless)