diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-11-12 11:48:26 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-04-16 10:26:11 -0700 |
| commit | 076392a0f65fa11b8c3475b762b8b9794057ae11 (patch) | |
| tree | ae10646ee55e4774e31a3441c7ca23c1864d1454 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 4595b89ad80ce2384d188de802ee03a183eb5905 (diff) | |
VideoCommon: Rework scissor handling
This increases accuracy, fixing the white rendering in Major Minor's Majestic March. However, the hardware backends can only have one viewport and scissor rectangle at a time, while sometimes multiple are needed to accurately emulate what is happening. If possible, this will need to be fixed later.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 9d3cfedbd3..6c369621b3 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -160,8 +160,7 @@ void Renderer::EndUtilityDrawing() { // Reset framebuffer/scissor/viewport. Pipeline will be reset at next draw. g_framebuffer_manager->BindEFBFramebuffer(); - BPFunctions::SetScissor(); - BPFunctions::SetViewport(); + BPFunctions::SetScissorAndViewport(); } void Renderer::SetFramebuffer(AbstractFramebuffer* framebuffer) @@ -543,8 +542,7 @@ void Renderer::CheckForConfigChanges() // Viewport and scissor rect have to be reset since they will be scaled differently. if (changed_bits & CONFIG_CHANGE_BIT_TARGET_SIZE) { - BPFunctions::SetViewport(); - BPFunctions::SetScissor(); + BPFunctions::SetScissorAndViewport(); } // Stereo mode change requires recompiling our post processing pipeline and imgui pipelines for |
