Fixed build breakage

This commit is contained in:
Kearwood Kip Gilbert
2018-10-09 11:16:41 -07:00
parent 6f8a99f543
commit ae59181c24

View File

@@ -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()
{
{
}