aux/vk: Use correct image type for 3D images;

This commit is contained in:
bjorn 2022-05-25 13:01:31 -07:00 committed by Jakob Bornecrantz
parent e3874383d0
commit d523001b6e

View file

@ -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,