Vulkan/CommandBuffer: Fix crash when moving

Former-commit-id: 441095f5be1fc45dac4b56e1cf535c1145327d4b
This commit is contained in:
Lynix 2016-05-19 09:04:01 +02:00
parent c22003df0e
commit 6ee0b4a51d
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ namespace Nz
inline void CommandBuffer::Free() 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 inline VkResult CommandBuffer::GetLastErrorCode() const