Fix compile warnings
This commit is contained in:
@@ -132,7 +132,7 @@ void KRPresentationThread::renderFrame()
|
||||
if (result == VK_ERROR_OUT_OF_DATE_KHR || result == VK_SUBOPTIMAL_KHR || resized) {
|
||||
// TODO - Must explicitly detect resize and trigger swapchain re-creation as well
|
||||
vkDeviceWaitIdle(device.m_logicalDevice);
|
||||
if (surface.recreateSwapChain() != VK_SUCCESS) {
|
||||
if (surface.recreateSwapChain() != KR_SUCCESS) {
|
||||
m_activeState = PresentThreadState::error;
|
||||
}
|
||||
break;
|
||||
@@ -203,4 +203,4 @@ void KRPresentationThread::renderFrame()
|
||||
|
||||
m_currentFrame = (m_currentFrame + 1) % KRENGINE_MAX_FRAMES_IN_FLIGHT;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user