diff options
author | Simon Ser <contact@emersion.fr> | 2023-05-30 14:13:16 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-06-01 10:42:56 +0200 |
commit | beb820b573fca805b345c6164e0f1a25256c46c4 (patch) | |
tree | 778985afc7c8e06373b13a38b619b4bd502c1ce7 /render/vulkan | |
parent | 0ba3ea3bcd1e98b6c499df33f260e2a676b71f9d (diff) |
render/vulkan: improve error handling in vulkan_begin_render_pass()
Release the command buffer if we end up not submitting it.
Diffstat (limited to 'render/vulkan')
-rw-r--r-- | render/vulkan/pass.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/render/vulkan/pass.c b/render/vulkan/pass.c index 4ff0d5c1..ac0ba263 100644 --- a/render/vulkan/pass.c +++ b/render/vulkan/pass.c @@ -579,6 +579,7 @@ struct wlr_vk_render_pass *vulkan_begin_render_pass(struct wlr_vk_renderer *rend VkResult res = vkBeginCommandBuffer(cb->vk, &begin_info); if (res != VK_SUCCESS) { wlr_vk_error("vkBeginCommandBuffer", res); + vulkan_reset_command_buffer(cb); free(pass); return NULL; } |