mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +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;
|
VkResult ret = VK_SUCCESS;
|
||||||
|
|
||||||
if (image_count > ARRAY_SIZE(out_vkic->images)) {
|
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;
|
return VK_ERROR_OUT_OF_HOST_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue