Forgot file

Former-commit-id: 00488f8e71b9dc9127884e9bffae8dc8895fc589 [formerly 7401cef459b75700ed17e2374c9f564da7a233cf]
Former-commit-id: 19b700504bb69f895694705d8a8168ad53f8d239
This commit is contained in:
Lynix 2016-06-13 19:54:53 +02:00
parent 113f99e2d1
commit c0d8beb11b
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ namespace Nz
}; };
VkCommandBuffer handle = VK_NULL_HANDLE; VkCommandBuffer handle = VK_NULL_HANDLE;
m_lastErrorCode = m_device.vkAllocateCommandBuffers(m_device, &createInfo, &handle); m_lastErrorCode = m_device->vkAllocateCommandBuffers(*m_device, &createInfo, &handle);
return CommandBuffer(*this, handle); return CommandBuffer(*this, handle);
} }
@ -39,7 +39,7 @@ namespace Nz
}; };
std::vector<VkCommandBuffer> handles(commandBufferCount, VK_NULL_HANDLE); std::vector<VkCommandBuffer> handles(commandBufferCount, VK_NULL_HANDLE);
m_lastErrorCode = m_device.vkAllocateCommandBuffers(m_device, &createInfo, handles.data()); m_lastErrorCode = m_device->vkAllocateCommandBuffers(*m_device, &createInfo, handles.data());
if (m_lastErrorCode != VkResult::VK_SUCCESS) if (m_lastErrorCode != VkResult::VK_SUCCESS)
return std::vector<CommandBuffer>(); return std::vector<CommandBuffer>();