mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
BPFunctions: Move upscaling of scissor rect to VideoCommon
This commit is contained in:
parent
5359396099
commit
c1b39ecc58
8 changed files with 17 additions and 44 deletions
|
@ -899,14 +899,10 @@ void Renderer::SetInterlacingMode()
|
|||
{
|
||||
}
|
||||
|
||||
void Renderer::SetScissorRect(const EFBRectangle& rc)
|
||||
void Renderer::SetScissorRect(const MathUtil::Rectangle<int>& rc)
|
||||
{
|
||||
TargetRectangle target_rc = ConvertEFBRectangle(rc);
|
||||
|
||||
VkRect2D scissor = {
|
||||
{target_rc.left, target_rc.top},
|
||||
{static_cast<uint32_t>(target_rc.GetWidth()), static_cast<uint32_t>(target_rc.GetHeight())}};
|
||||
|
||||
VkRect2D scissor = {{rc.left, rc.top},
|
||||
{static_cast<u32>(rc.GetWidth()), static_cast<u32>(rc.GetHeight())}};
|
||||
StateTracker::GetInstance()->SetScissor(scissor);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue