From 9f97419ee434643f6604b985bb96f94a07ba6743 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 16 Nov 2021 15:41:13 +0000 Subject: [PATCH] Fix problem with patching framebuffers in vulkan 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 f2741487b..65631cc9f 100644 --- a/renderdoc/driver/vulkan/vk_pixelhistory.cpp +++ b/renderdoc/driver/vulkan/vk_pixelhistory.cpp @@ -979,7 +979,7 @@ protected: } // Either modify the existing depth stencil attachment, or add one. - if(sub.depthstencilAttachment != -1) + if(sub.depthstencilAttachment != -1 && sub.depthstencilAttachment < atts.size()) atts[sub.depthstencilAttachment] = m_CallbackInfo.dsImageView; else atts.push_back(m_CallbackInfo.dsImageView);