summaryrefslogtreecommitdiffstats
path: root/vulkan.c
diff options
context:
space:
mode:
Diffstat (limited to 'vulkan.c')
-rw-r--r--vulkan.c3
1 files changed, 3 insertions, 0 deletions
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;