Fixed build breakage
This commit is contained in:
@@ -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()
|
||||
{
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user