Fix compile warnings

This commit is contained in:
2023-11-23 21:46:12 -08:00
parent 67d8e6773a
commit cb998d73f0
12 changed files with 35 additions and 31 deletions

View File

@@ -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;
}
}
}