Vulkan/CommandBuffer: Fix crash when moving
Former-commit-id: fbb9c69e709109ca9f06def3bf8b35e112ee294c
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user