Fix problem with patching framebuffers in vulkan pixel history

This commit is contained in:
baldurk
2021-11-16 15:41:13 +00:00
parent 751c80af85
commit 9f97419ee4
+1 -1
View File
@@ -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);