From d51562fc9a38f493da7d22118a8c6d715e6b5e67 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 26 Feb 2021 17:28:52 +0000 Subject: [PATCH] [dxvk] Only pass needed amount of clear values when binding a framebuffer Works around a Renderdoc bug and should hopefully make more sense. The views are compacted in a framebuffer so it should be fine to do this. --- src/dxvk/dxvk_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index ee528601b..dec2100c1 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -3470,7 +3470,7 @@ namespace dxvk { this->renderPassBindFramebuffer( m_state.om.framebuffer, m_state.om.renderPassOps, - m_state.om.clearValues.size(), + m_state.om.framebuffer->numAttachments(), m_state.om.clearValues.data()); // Track the final layout of each render target