Vulkan/CommandBuffer: Fix crash when moving
Former-commit-id: 441095f5be1fc45dac4b56e1cf535c1145327d4b
This commit is contained in:
parent
c22003df0e
commit
6ee0b4a51d
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue