mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[dxvk] Fix stale vertex attribute divisor
Not resetting this may result in unnecessary state cache misses.
This commit is contained in:
parent
b35f3c14df
commit
66b6b50af6
@ -2008,8 +2008,10 @@ namespace dxvk {
|
||||
m_state.gp.state.ilDivisors[i] = bindings[i].fetchRate;
|
||||
}
|
||||
|
||||
for (uint32_t i = bindingCount; i < m_state.gp.state.ilBindingCount; i++)
|
||||
for (uint32_t i = bindingCount; i < m_state.gp.state.ilBindingCount; i++) {
|
||||
m_state.gp.state.ilBindings[i] = VkVertexInputBindingDescription();
|
||||
m_state.gp.state.ilDivisors[i] = 0;
|
||||
}
|
||||
|
||||
m_state.gp.state.ilAttributeCount = attributeCount;
|
||||
m_state.gp.state.ilBindingCount = bindingCount;
|
||||
|
Loading…
x
Reference in New Issue
Block a user