Skip to content

Commit

Permalink
Fixed the empty descriptor set layout not being destroyed with the NV…
Browse files Browse the repository at this point in the history
…RHI device.
  • Loading branch information
apanteleev committed Oct 5, 2024
1 parent dc8a779 commit 23b5149
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vulkan/vulkan-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ namespace nvrhi::vulkan
m_Context.device.destroyPipelineCache(m_Context.pipelineCache);
m_Context.pipelineCache = vk::PipelineCache();
}

if (m_Context.emptyDescriptorSetLayout)
{
m_Context.device.destroyDescriptorSetLayout(m_Context.emptyDescriptorSetLayout);
m_Context.emptyDescriptorSetLayout = vk::DescriptorSetLayout();
}
}

Object Device::getNativeObject(ObjectType objectType)
Expand Down

0 comments on commit 23b5149

Please sign in to comment.