mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-08 16:01:19 +12:00
Vulkan: Fix sampler object leak
This commit is contained in:
parent
df53971507
commit
721d0cebad
3 changed files with 10 additions and 4 deletions
|
@ -3773,6 +3773,8 @@ VKRObjectTextureView::VKRObjectTextureView(VKRObjectTexture* tex, VkImageView vi
|
|||
VKRObjectTextureView::~VKRObjectTextureView()
|
||||
{
|
||||
auto logicalDevice = VulkanRenderer::GetInstance()->GetLogicalDevice();
|
||||
if (m_textureViewSampler != VK_NULL_HANDLE)
|
||||
vkDestroySampler(logicalDevice, m_textureViewSampler, nullptr);
|
||||
if (m_textureDefaultSampler[0] != VK_NULL_HANDLE)
|
||||
vkDestroySampler(logicalDevice, m_textureDefaultSampler[0], nullptr);
|
||||
if (m_textureDefaultSampler[1] != VK_NULL_HANDLE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue