diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-03-10 15:06:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-10 15:06:19 -0400 |
| commit | 5ed8b7bc9d8f70d5dae4f009939ac9715adf83b4 (patch) | |
| tree | 946de379d9606f4ba12e76f8bec7483fc282833c /Source/Core/VideoCommon/BPFunctions.cpp | |
| parent | d45e6c67293f10be4159d4e222ad3e903d7a835b (diff) | |
| parent | c18c039089bdc27cbccf92a9053ed80bb161a9b9 (diff) | |
Merge pull request #13403 from jordan-woyak/backend_info
VideoCommon: Move backend_info out of VideoConfig struct.
Diffstat (limited to 'Source/Core/VideoCommon/BPFunctions.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPFunctions.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/BPFunctions.cpp b/Source/Core/VideoCommon/BPFunctions.cpp index 2c6c733710..d813d8b6e3 100644 --- a/Source/Core/VideoCommon/BPFunctions.cpp +++ b/Source/Core/VideoCommon/BPFunctions.cpp @@ -221,7 +221,7 @@ void SetScissorAndViewport() // floating-point round-trip errors. However the console GPU doesn't ever write a value // to the depth buffer that exceeds 2^24 - 1. constexpr float GX_MAX_DEPTH = 16777215.0f / 16777216.0f; - if (!g_ActiveConfig.backend_info.bSupportsDepthClamp) + if (!g_backend_info.bSupportsDepthClamp) { // There's no way to support oversized depth ranges in this situation. Let's just clamp the // range to the maximum value supported by the console GPU and hope for the best. @@ -233,7 +233,7 @@ void SetScissorAndViewport() { // We need to ensure depth values are clamped the maximum value supported by the console GPU. // Taking into account whether the depth range is inverted or not. - if (xfmem.viewport.zRange < 0.0f && g_ActiveConfig.backend_info.bSupportsReversedDepthRange) + if (xfmem.viewport.zRange < 0.0f && g_backend_info.bSupportsReversedDepthRange) { min_depth = GX_MAX_DEPTH; max_depth = 0.0f; @@ -246,7 +246,7 @@ void SetScissorAndViewport() } float near_depth, far_depth; - if (g_ActiveConfig.backend_info.bSupportsReversedDepthRange) + if (g_backend_info.bSupportsReversedDepthRange) { // Set the reversed depth range. near_depth = max_depth; @@ -262,7 +262,7 @@ void SetScissorAndViewport() } // Lower-left flip. - if (g_ActiveConfig.backend_info.bUsesLowerLeftOrigin) + if (g_backend_info.bUsesLowerLeftOrigin) y = static_cast<float>(g_gfx->GetCurrentFramebuffer()->GetHeight()) - y - height; g_gfx->SetViewport(x, y, width, height, near_depth, far_depth); |
