Vulkan/CommandBuffer: Fix crash when moving

Former-commit-id: fbb9c69e709109ca9f06def3bf8b35e112ee294c
This commit is contained in:
Lynix 2016-05-19 09:04:01 +02:00
parent 358f0ea87b
commit aa654b5caf
1 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ namespace Nz
inline void CommandBuffer::Free()
{
if (m_handle)
m_pool->GetDevice().vkFreeCommandBuffers(m_pool->GetDevice(), *m_pool, 1, &m_handle);
}