removed double free

main
noah metz 2024-01-13 12:37:07 -07:00
parent 91731d933d
commit c3d727d444
1 changed files with 0 additions and 4 deletions

@ -2939,10 +2939,6 @@ void cleanup(GLFWwindow* window, VulkanContext* context) {
vkDestroyImageView(context->device, context->swapchain_image_views[i], 0);
}
if(context->swapchain != VK_NULL_HANDLE) {
vkDestroySwapchainKHR(context->device, context->swapchain, 0);
}
for(uint32_t i = 0; i < context->max_frames_in_flight; i++) {
vkDestroySemaphore(context->device, context->image_available_semaphores[i], 0);
vkDestroySemaphore(context->device, context->render_finished_semaphores[i], 0);