From 4409e579198ae61af5de717fb3f1138844bb6f83 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 11 Jan 2024 14:51:22 +0000 Subject: [PATCH] Handle storage access on vulkan with dynamic rendering in pixel history * When using dynamic rendering we were falling through if we didn't find the image as an attachment as we expected to, but in the case of direct stores we don't expect to find it so we should return early rather than crashing trying to look up a non-existent renderpass object. --- renderdoc/driver/vulkan/vk_pixelhistory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/renderdoc/driver/vulkan/vk_pixelhistory.cpp b/renderdoc/driver/vulkan/vk_pixelhistory.cpp index 7711122fe..14bee0fac 100644 --- a/renderdoc/driver/vulkan/vk_pixelhistory.cpp +++ b/renderdoc/driver/vulkan/vk_pixelhistory.cpp @@ -1466,6 +1466,7 @@ protected: } } } + return 0; } const VulkanCreationInfo::RenderPass &rpInfo =