1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

vk: Properly destroy renderpass cache

This commit is contained in:
kd-11 2021-06-09 21:03:23 +03:00 committed by kd-11
parent 20bd723e7c
commit cd6552d344

View File

@ -322,6 +322,12 @@ namespace vk
void clear_renderpass_cache(VkDevice dev)
{
// Wipe current status
g_cached_renderpass_key = 0;
g_cached_renderpass = VK_NULL_HANDLE;
g_current_renderpass.clear();
// Destroy cache
for (const auto &renderpass : g_renderpass_cache)
{
vkDestroyRenderPass(dev, renderpass.second, nullptr);