diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-12-22 13:30:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-22 13:30:30 -0500 |
| commit | 7ec676b452c2d3d7707c1e8e2d5afc2001968d00 (patch) | |
| tree | 850e8ca33e991635bcd6780a71682a6d92fb7195 /Source/Core/VideoCommon/BPFunctions.cpp | |
| parent | 0e06f5d632744107f0fced36393eff1be1c5ab4e (diff) | |
| parent | a4599a1adda5c1d445b70d0dfe70b50fe3888662 (diff) | |
Merge pull request #14117 from iwubcode/end_utility_drawing
VideoCommon: avoid assuming global state exists for 'EndUtilityDrawing'
Diffstat (limited to 'Source/Core/VideoCommon/BPFunctions.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPFunctions.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/BPFunctions.cpp b/Source/Core/VideoCommon/BPFunctions.cpp index 660d85c598..134a14f8d4 100644 --- a/Source/Core/VideoCommon/BPFunctions.cpp +++ b/Source/Core/VideoCommon/BPFunctions.cpp @@ -265,6 +265,14 @@ void SetScissorAndViewport(FramebufferManager* frame_buffer_manager, ScissorPos y = static_cast<float>(g_gfx->GetCurrentFramebuffer()->GetHeight()) - y - height; g_gfx->SetViewport(x, y, width, height, near_depth, far_depth); + + g_gfx->StoreViewportAndScissor(AbstractGfx::ViewportAndScissor{.scissor_rect = converted_rc, + .viewport_x = x, + .viewport_y = y, + .viewport_width = width, + .viewport_height = height, + .viewport_near_depth = near_depth, + .viewport_far_depth = far_depth}); } void SetDepthMode() |
