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:
parent
20bd723e7c
commit
cd6552d344
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user