Vulkan/CommandBuffer: Fix crash when moving
Former-commit-id: 441095f5be1fc45dac4b56e1cf535c1145327d4b
This commit is contained in:
parent
c22003df0e
commit
6ee0b4a51d
|
|
@ -33,7 +33,8 @@ namespace Nz
|
|||
|
||||
inline void CommandBuffer::Free()
|
||||
{
|
||||
m_pool->GetDevice().vkFreeCommandBuffers(m_pool->GetDevice(), *m_pool, 1, &m_handle);
|
||||
if (m_handle)
|
||||
m_pool->GetDevice().vkFreeCommandBuffers(m_pool->GetDevice(), *m_pool, 1, &m_handle);
|
||||
}
|
||||
|
||||
inline VkResult CommandBuffer::GetLastErrorCode() const
|
||||
|
|
|
|||
Loading…
Reference in New Issue