mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
render/vulkan: handle vulkan_record_stage_cb() failures
This commit is contained in:
parent
3f0487d310
commit
ba276e5ac2
2 changed files with 8 additions and 0 deletions
|
|
@ -1774,6 +1774,9 @@ static bool vulkan_read_pixels(struct wlr_renderer *wlr_renderer,
|
|||
}
|
||||
|
||||
VkCommandBuffer cb = vulkan_record_stage_cb(vk_renderer);
|
||||
if (cb == VK_NULL_HANDLE) {
|
||||
return false;
|
||||
}
|
||||
|
||||
vulkan_change_layout(cb, dst_image,
|
||||
VK_IMAGE_LAYOUT_UNDEFINED,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue