aboutsummaryrefslogtreecommitdiff
path: root/render/vulkan/renderer.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/vulkan/renderer.c')
-rw-r--r--render/vulkan/renderer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/render/vulkan/renderer.c b/render/vulkan/renderer.c
index f4af9caf..49e28d8f 100644
--- a/render/vulkan/renderer.c
+++ b/render/vulkan/renderer.c
@@ -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,