a/vk: Print out error on too many images to allocate

This commit is contained in:
Jakob Bornecrantz 2022-11-03 09:56:12 +00:00 committed by Jakob Bornecrantz
parent a41ccb0467
commit 45937312bd

View file

@ -296,6 +296,7 @@ vk_ic_allocate(struct vk_bundle *vk,
VkResult ret = VK_SUCCESS;
if (image_count > ARRAY_SIZE(out_vkic->images)) {
U_LOG_E("To many images for vk_image_collection");
return VK_ERROR_OUT_OF_HOST_MEMORY;
}