From 7a5f167c1cce4d3c07b8475130beb6dd211032c4 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 13 Sep 2020 20:21:23 +1000 Subject: [PATCH] VulkanHostDisplay: Fix a possible crash at shutdown with large post shaders --- src/frontend-common/vulkan_host_display.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend-common/vulkan_host_display.cpp b/src/frontend-common/vulkan_host_display.cpp index 244b4951b..9f9ddf825 100644 --- a/src/frontend-common/vulkan_host_display.cpp +++ b/src/frontend-common/vulkan_host_display.cpp @@ -439,6 +439,7 @@ void VulkanHostDisplay::DestroyResources() m_post_processing_input_texture.Destroy(false); Vulkan::Util::SafeDestroyFramebuffer(m_post_processing_input_framebuffer); m_post_processing_stages.clear(); + m_post_processing_ubo.Destroy(true); m_post_processing_chain.ClearStages(); #endif