Vulkan/CommandBuffer: Fix crash when moving
Former-commit-id: fbb9c69e709109ca9f06def3bf8b35e112ee294c
This commit is contained in:
@@ -33,6 +33,7 @@ namespace Nz
|
|||||||
|
|
||||||
inline void CommandBuffer::Free()
|
inline void CommandBuffer::Free()
|
||||||
{
|
{
|
||||||
|
if (m_handle)
|
||||||
m_pool->GetDevice().vkFreeCommandBuffers(m_pool->GetDevice(), *m_pool, 1, &m_handle);
|
m_pool->GetDevice().vkFreeCommandBuffers(m_pool->GetDevice(), *m_pool, 1, &m_handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user