mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-04 13:29:45 -05:00
render/vulkan: fix crash on OOM
Closes: https://github.com/swaywm/sway/issues/8485
(cherry picked from commit 9649fbe443)
This commit is contained in:
parent
b28b269106
commit
74be9ddaab
1 changed files with 2 additions and 0 deletions
|
|
@ -267,6 +267,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