mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-19 19:15:26 +00:00
vk: Properly destroy renderpass cache
This commit is contained in:
parent
20bd723e7c
commit
cd6552d344
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue