aux/vk: Declare consistent usage for xr swapchain images

This commit is contained in:
Benjamin Saunders 2020-05-31 18:59:23 -07:00 committed by Jakob Bornecrantz
parent 27d2163f37
commit 3f744331e1

View file

@ -276,7 +276,8 @@ vk_create_image_from_fd(struct vk_bundle *vk,
VkImage *out_image,
VkDeviceMemory *out_mem)
{
VkImageUsageFlags image_usage = (VkImageUsageFlags)0;
VkImageUsageFlags image_usage =
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT;
VkImage image = VK_NULL_HANDLE;
VkResult ret = VK_SUCCESS;