X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fvk.c;h=5aabed1340874b6216bb4195e845da3b0915c523;hb=8d3a8ecaf4f20ed8c460ab75724c7bf8363e905a;hp=bde9972c5a31b98ef98ac04ee705d421cea02724;hpb=63c91ee81f2e7d6218a424d5856132b3e8c5d8ac;p=vkrt diff --git a/src/vk.c b/src/vk.c index bde9972..5aabed1 100644 --- a/src/vk.c +++ b/src/vk.c @@ -1018,7 +1018,7 @@ are_props_supported(struct vk_ctx *ctx, struct vk_att_props *props) VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2; img_fmt_info.pNext = props->need_export ? &ext_img_fmt_info : 0; img_fmt_info.format = props->format; - img_fmt_info.type = get_image_type(props->h, props->depth); + img_fmt_info.type = VK_IMAGE_TYPE_2D; img_fmt_info.tiling = props->tiling; for (i = 0; i < ARRAY_SIZE(all_flags); i++) { @@ -1033,8 +1033,7 @@ are_props_supported(struct vk_ctx *ctx, struct vk_att_props *props) /* usage can't be null */ if (flags) { img_fmt_info.usage = flags; - } - else { + } else { if (!props->is_swapchain) { fprintf(stderr, "Unsupported Vulkan format properties: usage.\n"); return false;