mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06: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:
@ -862,9 +862,10 @@ TargetRectangle Renderer::ConvertEFBRectangle(const EFBRectangle& rc)
|
||||
// Renderer::GetTargetHeight() = the fixed ini file setting
|
||||
// donkopunchstania - it appears scissorBR is the bottom right pixel inside the scissor box
|
||||
// therefore the width and height are (scissorBR + 1) - scissorTL
|
||||
void Renderer::SetScissorRect(const TargetRectangle& rc)
|
||||
void Renderer::SetScissorRect(const EFBRectangle& rc)
|
||||
{
|
||||
glScissor(rc.left, rc.bottom, rc.GetWidth(), rc.GetHeight());
|
||||
TargetRectangle trc = g_renderer->ConvertEFBRectangle(rc);
|
||||
glScissor(trc.left, trc.bottom, trc.GetWidth(), trc.GetHeight());
|
||||
}
|
||||
|
||||
void Renderer::SetColorMask()
|
||||
|
Reference in New Issue
Block a user