diff --git a/kraken/KRContext.cpp b/kraken/KRContext.cpp index f52238e..8c7a98b 100755 --- a/kraken/KRContext.cpp +++ b/kraken/KRContext.cpp @@ -478,16 +478,16 @@ KRContext::createDeviceContexts() inst_info.enabledLayerCount = 0; inst_info.ppEnabledLayerNames = NULL; - VkResult res = vkCreateInstance(&inst_info, NULL, &m_vulkanInstance); - if (res != VK_SUCCESS) { - destroyDeviceContexts(); + VkResult res = vkCreateInstance(&inst_info, NULL, &m_vulkanInstance); + if (res != VK_SUCCESS) { + destroyDeviceContexts(); } } void KRContext::destroyDeviceContexts() { - if (m_vulkanInstance) != VK_NULL_HANDLE) { + if (m_vulkanInstance != VK_NULL_HANDLE) { vkDestroyInstance(m_vulkanInstance, NULL); m_vulkanInstance = VK_NULL_HANDLE; } @@ -495,6 +495,6 @@ KRContext::destroyDeviceContexts() void KRContext::activateStreamerContext() -{ +{ }