queue submitted twice

It looks like the queue is submitted twice and synchronized once with wait idle and once with a fence.
This commit is contained in:
Florian Hänel 2016-08-14 00:11:41 -07:00 committed by GitHub
parent 0f9077aae6
commit adf78eab4f

View file

@ -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
}
}