diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index 9f53c0a79..15116b5fa 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -2858,9 +2858,9 @@ namespace dxvk { pViewports[i].MaxDepth = 0.0f; } } + } else { + *pNumViewports = m_state.rs.numViewports; } - - *pNumViewports = m_state.rs.numViewports; } @@ -2880,9 +2880,9 @@ namespace dxvk { pRects[i].bottom = 0; } } + } else { + *pNumRects = m_state.rs.numScissors; } - - *pNumRects = m_state.rs.numScissors; }