From 31497799058ddd776c1d448ea8931f598e86ae79 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 1 Mar 2018 14:01:24 +0000 Subject: command pool: command buffers now created correctly vkEndCommandBuffer needs to be called on each command buffer before it can be submitted. --- vulkan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vulkan.c b/vulkan.c index 964c000..706a842 100644 --- a/vulkan.c +++ b/vulkan.c @@ -722,6 +722,9 @@ static VkCommandPool createcpool(struct cmdbufs *cmdbufs, VkDevice dev, const in vkCmdBindPipeline(cmdbufs->list[i], VK_PIPELINE_BIND_POINT_GRAPHICS, ppln->ppln); vkCmdDraw(cmdbufs->list[i], 3, 1, 0, 0); vkCmdEndRenderPass(cmdbufs->list[i]); + res = vkEndCommandBuffer(cmdbufs->list[i]); + if (res != VK_SUCCESS) + eprintf("Could not record command buffer"); }; return cpool; -- cgit v1.2.3-54-g00ecf