mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 23:58:59 +00:00
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.
This commit is contained in:
parent
4595b89ad8
commit
076392a0f6
6 changed files with 283 additions and 48 deletions
|
@ -958,7 +958,7 @@ void Renderer::ClearScreen(const MathUtil::Rectangle<int>& rc, bool colorEnable,
|
|||
glDepthMask(m_current_depth_state.updateenable);
|
||||
|
||||
// Scissor rect must be restored.
|
||||
BPFunctions::SetScissor();
|
||||
BPFunctions::SetScissorAndViewport();
|
||||
}
|
||||
|
||||
void Renderer::RenderXFBToScreen(const MathUtil::Rectangle<int>& target_rc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue