Correct fence count

This commit is contained in:
saschawillems 2016-08-09 23:53:36 +02:00
parent fdd9594221
commit a56f2b2c6f

View file

@ -349,8 +349,8 @@ public:
VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submitInfo, waitFences[currentBuffer])); 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 // 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(vkWaitForFences(device, 1, &waitFences[currentBuffer], VK_TRUE, UINT64_MAX));
VK_CHECK_RESULT(vkResetFences(device, 2, &waitFences[currentBuffer])); VK_CHECK_RESULT(vkResetFences(device, 1, &waitFences[currentBuffer]));
// Present the current buffer to the swap chain // 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 // Pass the semaphore signaled by the command buffer submission from the submit info as the wait semaphore for swap chain presentation