mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d11] Handle nullptr RasterizerState in ApplyRasterizerSampleCount
This broke as of a637134c56
is causing a crash in the BGFX d3d11 samples.
This commit is contained in:
parent
3a6f8fa413
commit
699d56e35d
1 changed files with 3 additions and 1 deletions
|
@ -3227,7 +3227,9 @@ namespace dxvk {
|
|||
pc.rasterizerSampleCount = m_state.om.sampleCount;
|
||||
|
||||
if (unlikely(!m_state.om.sampleCount)) {
|
||||
pc.rasterizerSampleCount = m_state.rs.state->Desc()->ForcedSampleCount;
|
||||
pc.rasterizerSampleCount = m_state.rs.state
|
||||
? m_state.rs.state->Desc()->ForcedSampleCount
|
||||
: 0;
|
||||
|
||||
if (!pc.rasterizerSampleCount)
|
||||
pc.rasterizerSampleCount = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue