From a661020cec61892ab13054b2f0ac7e26f2ddaf49 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 9 Feb 2022 13:02:30 +0000 Subject: [PATCH] Fix incorrect check for image view type as array in pixel history --- renderdoc/driver/vulkan/vk_pixelhistory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/vulkan/vk_pixelhistory.cpp b/renderdoc/driver/vulkan/vk_pixelhistory.cpp index 59483ebf1..2d2ad2f34 100644 --- a/renderdoc/driver/vulkan/vk_pixelhistory.cpp +++ b/renderdoc/driver/vulkan/vk_pixelhistory.cpp @@ -3233,7 +3233,7 @@ bool VulkanDebugManager::PixelHistorySetupResources(PixelHistoryResources &resou viewInfo.format = VK_FORMAT_R32G32B32A32_SFLOAT; viewInfo.subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, imgInfo.arrayLayers}; - if(samples != VK_SAMPLE_COUNT_1_BIT) + if(imgInfo.arrayLayers != 0) viewInfo.viewType = VK_IMAGE_VIEW_TYPE_2D_ARRAY; vkr = m_pDriver->vkCreateImageView(m_Device, &viewInfo, NULL, &colorImageView);