From 47f7333c186b27c203c65dc608232e3bfd6e25d5 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Mon, 8 Jul 2019 05:27:53 +0200 Subject: [PATCH] [d3d11] Fix RSGetViewports and RSGetScissorRects behaviour Fixes #1116. --- src/d3d11/d3d11_context.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }