|
|
|
@ -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);
|
|
|
|
|