Skip to content

Commit

Permalink
render/vulkan: fix crash on OOM
Browse files Browse the repository at this point in the history
Closes: swaywm/sway#8485
(cherry picked from commit 9649fbe)
  • Loading branch information
emersion authored and bl4ckb0ne committed Dec 11, 2024
1 parent b28b269 commit 74be9dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions render/vulkan/renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ struct wlr_vk_buffer_span vulkan_get_stage_span(struct wlr_vk_renderer *r,
goto error_alloc;
}

wl_list_init(&buf->link);

VkResult res;
VkBufferCreateInfo buf_info = {
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
Expand Down

0 comments on commit 74be9dd

Please sign in to comment.