mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 16:16:05 +00:00
use EFBRectangle for scissor rect
This one is backend independed. The backend should recalc such things on their own.
This commit is contained in:
parent
1f4219b5b4
commit
3551259c7a
6 changed files with 10 additions and 9 deletions
|
@ -47,8 +47,7 @@ void SetScissor()
|
|||
if (rc.left > rc.right) rc.right = rc.left;
|
||||
if (rc.top > rc.bottom) rc.bottom = rc.top;
|
||||
|
||||
TargetRectangle trc = g_renderer->ConvertEFBRectangle(rc);
|
||||
g_renderer->SetScissorRect(trc);
|
||||
g_renderer->SetScissorRect(rc);
|
||||
}
|
||||
|
||||
void SetLineWidth()
|
||||
|
|
|
@ -49,7 +49,7 @@ public:
|
|||
|
||||
virtual void SetColorMask() = 0;
|
||||
virtual void SetBlendMode(bool forceUpdate) = 0;
|
||||
virtual void SetScissorRect(const TargetRectangle& rc) = 0;
|
||||
virtual void SetScissorRect(const EFBRectangle& rc) = 0;
|
||||
virtual void SetGenerationMode() = 0;
|
||||
virtual void SetDepthMode() = 0;
|
||||
virtual void SetLogicOpMode() = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue