[d3d11] Assign ForcedSampleCount to correct value in ApplyRasterizerSampleCount

ForcedSampleCount was never being respected as it would always be replaced with 1 as it was being assigned to the wrong variable.

This was also probably causing a bunch of redundant CS work as it was changing state that was dirty checked.
This commit is contained in:
Joshua Ashton 2022-09-16 06:10:06 +00:00 committed by Philip Rebohle
parent 1c33d8be1f
commit 3a6f8fa413
1 changed files with 1 additions and 1 deletions

View File

@ -3229,7 +3229,7 @@ namespace dxvk {
if (unlikely(!m_state.om.sampleCount)) {
pc.rasterizerSampleCount = m_state.rs.state->Desc()->ForcedSampleCount;
if (!m_state.om.sampleCount)
if (!pc.rasterizerSampleCount)
pc.rasterizerSampleCount = 1;
}