Vulkan device destroy images_view on Swapchain::Destroy (#4218)

This commit is contained in:
Niram7777 2026-04-04 21:30:28 +02:00 committed by GitHub
parent b365d5fe78
commit fb067bc43f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -261,6 +261,12 @@ void Swapchain::Destroy() {
LOG_WARNING(Render_Vulkan, "Failed to wait for device to become idle: {}",
vk::to_string(wait_result));
}
for (auto& image_view : images_view) {
device.destroyImageView(image_view);
}
images_view.clear();
if (swapchain) {
device.destroySwapchainKHR(swapchain);
}