Skip to content
Snippets Groups Projects
Commit 876a37ad authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

[#18]Fix code for weak compilers

parent a4cc0e02
No related branches found
No related tags found
1 merge request!12Resolve "Swapchain Class"
Pipeline #24806 passed
......@@ -343,7 +343,8 @@ namespace vkcv
m_Queues.graphicsQueue.submit(submitInfo);
vk::Result presentResult;
vk::PresentInfoKHR presentInfo(1, &m_SyncResources.renderFinished, 1, &m_swapchain.getSwapchain(), &swapchainImageIndex, &presentResult);
const vk::SwapchainKHR swapchain = m_swapchain.getSwapchain();
const vk::PresentInfoKHR presentInfo(1, &m_SyncResources.renderFinished, 1, &swapchain, &swapchainImageIndex, &presentResult);
m_Queues.presentQueue.presentKHR(presentInfo);
if (presentResult != vk::Result::eSuccess) {
std::cout << "Error: swapchain present failed" << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment