mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
a/vk: Print out error on too many images to allocate
This commit is contained in:
parent
a41ccb0467
commit
45937312bd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue