diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-11-12 14:32:17 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-04-16 10:26:11 -0700 |
| commit | 4595b89ad80ce2384d188de802ee03a183eb5905 (patch) | |
| tree | 04eb2862f3ea3d20c8320899f3e7f9dcb4b7bdeb /Source/Core/VideoCommon/BPFunctions.cpp | |
| parent | b85b35d5ea6af0dbd7ea74b47e2564a805d9bfe5 (diff) | |
VideoCommon: Remove bSupportsOversizedViewports
I think this is a relic of D3D9. D3D11 and D3D12 seem to work fine without it. Plus, ViewportCorrectionMatrix just didn't work correctly (at least with the viewports being generated by the new scissor code).
Diffstat (limited to 'Source/Core/VideoCommon/BPFunctions.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPFunctions.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Source/Core/VideoCommon/BPFunctions.cpp b/Source/Core/VideoCommon/BPFunctions.cpp index fe3867c29c..9bc26fb9d2 100644 --- a/Source/Core/VideoCommon/BPFunctions.cpp +++ b/Source/Core/VideoCommon/BPFunctions.cpp @@ -153,17 +153,6 @@ void SetViewport() far_depth = 1.0f - min_depth; } - // Clamp to size if oversized not supported. Required for D3D. - if (!g_ActiveConfig.backend_info.bSupportsOversizedViewports) - { - const float max_width = static_cast<float>(g_renderer->GetCurrentFramebuffer()->GetWidth()); - const float max_height = static_cast<float>(g_renderer->GetCurrentFramebuffer()->GetHeight()); - x = std::clamp(x, 0.0f, max_width - 1.0f); - y = std::clamp(y, 0.0f, max_height - 1.0f); - width = std::clamp(width, 1.0f, max_width - x); - height = std::clamp(height, 1.0f, max_height - y); - } - // Lower-left flip. if (g_ActiveConfig.backend_info.bUsesLowerLeftOrigin) y = static_cast<float>(g_renderer->GetCurrentFramebuffer()->GetHeight()) - y - height; |
