You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -915,7 +917,7 @@ class VulkanExample : public VulkanExampleBase
915
917
// Get the next swap chain image from the implementation
916
918
// Note that the implementation is free to return the images in any order, so we must use the acquire function and can't just cycle through the images/imageIndex on our own
917
919
uint32_t imageIndex;
918
-
VkResult result = vkAcquireNextImageKHR(device, swapChain.swapChain, UINT64_MAX, presentCompleteSemaphores[currentSemaphore], VK_NULL_HANDLE, &imageIndex);
920
+
VkResult result = vkAcquireNextImageKHR(device, swapChain.swapChain, UINT64_MAX, presentCompleteSemaphores[currentFrame], VK_NULL_HANDLE, &imageIndex);
919
921
if (result == VK_ERROR_OUT_OF_DATE_KHR) {
920
922
windowResize();
921
923
return;
@@ -1011,10 +1013,10 @@ class VulkanExample : public VulkanExampleBase
1011
1013
submitInfo.commandBufferCount = 1; // We submit a single command buffer
1012
1014
1013
1015
// Semaphore to wait upon before the submitted command buffer starts executing
@@ -701,7 +703,7 @@ class VulkanExample : public VulkanExampleBase
701
703
// Get the next swap chain image from the implementation
702
704
// Note that the implementation is free to return the images in any order, so we must use the acquire function and can't just cycle through the images/imageIndex on our own
703
705
uint32_t imageIndex{ 0 };
704
-
VkResult result = vkAcquireNextImageKHR(device, swapChain.swapChain, UINT64_MAX, presentCompleteSemaphores[currentSemaphore], VK_NULL_HANDLE, &imageIndex);
706
+
VkResult result = vkAcquireNextImageKHR(device, swapChain.swapChain, UINT64_MAX, presentCompleteSemaphores[currentFrame], VK_NULL_HANDLE, &imageIndex);
705
707
if (result == VK_ERROR_OUT_OF_DATE_KHR) {
706
708
windowResize();
707
709
return;
@@ -788,10 +790,10 @@ class VulkanExample : public VulkanExampleBase
788
790
submitInfo.commandBufferCount = 1; // We submit a single command buffer
789
791
790
792
// Semaphore to wait upon before the submitted command buffer starts executing
0 commit comments