mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
render/vulkan: fix crash on OOM
Closes: https://github.com/swaywm/sway/issues/8485
This commit is contained in:
parent
631e5be0d7
commit
9649fbe443
1 changed files with 2 additions and 0 deletions
|
|
@ -269,6 +269,8 @@ struct wlr_vk_buffer_span vulkan_get_stage_span(struct wlr_vk_renderer *r,
|
||||||
goto error_alloc;
|
goto error_alloc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wl_list_init(&buf->link);
|
||||||
|
|
||||||
VkResult res;
|
VkResult res;
|
||||||
VkBufferCreateInfo buf_info = {
|
VkBufferCreateInfo buf_info = {
|
||||||
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
|
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue