Merge pull request #117 from SHADE-DP/Fix-SamplerCrash
Added proper deletion of VKSamplers
This commit is contained in:
commit
3486da7a7a
|
@ -49,7 +49,7 @@ namespace SHADE
|
||||||
SHVkSampler::~SHVkSampler() noexcept
|
SHVkSampler::~SHVkSampler() noexcept
|
||||||
{
|
{
|
||||||
if (vkSampler)
|
if (vkSampler)
|
||||||
device->GetVkLogicalDevice().destroySampler();
|
device->GetVkLogicalDevice().destroySampler(vkSampler);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in New Issue