1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-30 20:52:11 +01:00

[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.
This commit is contained in:
Joshua Ashton 2021-02-26 17:28:52 +00:00 committed by Philip Rebohle
parent db69ade7e7
commit d51562fc9a

View File

@ -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