Added proper deletion of VKSamplers

This commit is contained in:
Kah Wei 2022-10-25 17:40:13 +08:00
parent 82f9499f5d
commit 416c571fd2
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ namespace SHADE
SHVkSampler::~SHVkSampler() noexcept
{
if (vkSampler)
device->GetVkLogicalDevice().destroySampler();
device->GetVkLogicalDevice().destroySampler(vkSampler);
}
/*-----------------------------------------------------------------------------------*/