From d523001b6e0c061278f1a84d74cb79793c4631f3 Mon Sep 17 00:00:00 2001 From: bjorn Date: Wed, 25 May 2022 13:01:31 -0700 Subject: [PATCH] aux/vk: Use correct image type for 3D images; --- src/xrt/auxiliary/vk/vk_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/auxiliary/vk/vk_helpers.c b/src/xrt/auxiliary/vk/vk_helpers.c index 0e693275e..6aa913042 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.c +++ b/src/xrt/auxiliary/vk/vk_helpers.c @@ -349,7 +349,7 @@ vk_create_image_advanced(struct vk_bundle *vk, VkImageCreateInfo image_info = { .sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, - .imageType = VK_IMAGE_TYPE_2D, + .imageType = extent.depth > 1 ? VK_IMAGE_TYPE_3D : VK_IMAGE_TYPE_2D, .format = format, .extent = extent, .mipLevels = 1,