diff --git a/triangle/triangle.cpp b/triangle/triangle.cpp index 7d29e5d5..5e7a2d40 100644 --- a/triangle/triangle.cpp +++ b/triangle/triangle.cpp @@ -349,8 +349,8 @@ public: VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submitInfo, waitFences[currentBuffer])); // Wait until the fence has signaled, which is the case when the command buffer has actually finished execution of all it's commands - VK_CHECK_RESULT(vkWaitForFences(device, 2, &waitFences[currentBuffer], VK_TRUE, UINT64_MAX)); - VK_CHECK_RESULT(vkResetFences(device, 2, &waitFences[currentBuffer])); + VK_CHECK_RESULT(vkWaitForFences(device, 1, &waitFences[currentBuffer], VK_TRUE, UINT64_MAX)); + VK_CHECK_RESULT(vkResetFences(device, 1, &waitFences[currentBuffer])); // Present the current buffer to the swap chain // Pass the semaphore signaled by the command buffer submission from the submit info as the wait semaphore for swap chain presentation