Vulkan/CommandBuffer: Fix crash when moving
Former-commit-id: fbb9c69e709109ca9f06def3bf8b35e112ee294c
This commit is contained in:
parent
358f0ea87b
commit
aa654b5caf
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue