aboutsummaryrefslogtreecommitdiff
path: root/render/vulkan/pass.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/vulkan/pass.c')
-rw-r--r--render/vulkan/pass.c1
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;
}