diff options
-rw-r--r-- | vulkan.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |