From ae59181c2458aeba54dbae738f91474199200e9d Mon Sep 17 00:00:00 2001 From: Kearwood Kip Gilbert Date: Tue, 9 Oct 2018 11:16:41 -0700 Subject: [PATCH] Fixed build breakage --- kraken/KRContext.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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() -{ +{ }