Fixed build breakage
This commit is contained in:
@@ -478,16 +478,16 @@ KRContext::createDeviceContexts()
|
|||||||
inst_info.enabledLayerCount = 0;
|
inst_info.enabledLayerCount = 0;
|
||||||
inst_info.ppEnabledLayerNames = NULL;
|
inst_info.ppEnabledLayerNames = NULL;
|
||||||
|
|
||||||
VkResult res = vkCreateInstance(&inst_info, NULL, &m_vulkanInstance);
|
VkResult res = vkCreateInstance(&inst_info, NULL, &m_vulkanInstance);
|
||||||
if (res != VK_SUCCESS) {
|
if (res != VK_SUCCESS) {
|
||||||
destroyDeviceContexts();
|
destroyDeviceContexts();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
KRContext::destroyDeviceContexts()
|
KRContext::destroyDeviceContexts()
|
||||||
{
|
{
|
||||||
if (m_vulkanInstance) != VK_NULL_HANDLE) {
|
if (m_vulkanInstance != VK_NULL_HANDLE) {
|
||||||
vkDestroyInstance(m_vulkanInstance, NULL);
|
vkDestroyInstance(m_vulkanInstance, NULL);
|
||||||
m_vulkanInstance = VK_NULL_HANDLE;
|
m_vulkanInstance = VK_NULL_HANDLE;
|
||||||
}
|
}
|
||||||
@@ -495,6 +495,6 @@ KRContext::destroyDeviceContexts()
|
|||||||
|
|
||||||
void
|
void
|
||||||
KRContext::activateStreamerContext()
|
KRContext::activateStreamerContext()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user