From adf78eab4f9176890e4e812e0b2451b69ec6f818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=A4nel?= Date: Sun, 14 Aug 2016 00:11:41 -0700 Subject: [PATCH] queue submitted twice It looks like the queue is submitted twice and synchronized once with wait idle and once with a fence. --- triangle/triangle.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/triangle/triangle.cpp b/triangle/triangle.cpp index 31ed2e18..a7a5343a 100644 --- a/triangle/triangle.cpp +++ b/triangle/triangle.cpp @@ -230,9 +230,6 @@ public: submitInfo.commandBufferCount = 1; submitInfo.pCommandBuffers = &commandBuffer; - VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submitInfo, VK_NULL_HANDLE)); - VK_CHECK_RESULT(vkQueueWaitIdle(queue)); - // Create fence to ensure that the command buffer has finished executing VkFenceCreateInfo fenceCreateInfo = {}; fenceCreateInfo.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO; @@ -1078,4 +1075,4 @@ int main(const int argc, const char *argv[]) #if !defined(__ANDROID__) return 0; #endif -} \ No newline at end of file +}