Session owned managers are now using std::unique_ptr

This commit is contained in:
2021-08-17 01:22:18 -07:00
parent 5d0a4bc9d2
commit fc55a5d490
7 changed files with 84 additions and 103 deletions

View File

@@ -42,6 +42,7 @@ KRDeviceManager::KRDeviceManager(KRContext& context)
KRDeviceManager::~KRDeviceManager()
{
destroyDevices();
if (m_vulkanInstance != VK_NULL_HANDLE) {
vkDestroyInstance(m_vulkanInstance, NULL);
m_vulkanInstance = VK_NULL_HANDLE;