use EFBRectangle for scissor rect

This one is backend independed. The backend should recalc such things on their own.
This commit is contained in:
degasus
2014-02-04 21:17:38 +01:00
parent 1f4219b5b4
commit 3551259c7a
6 changed files with 10 additions and 9 deletions

View File

@ -303,9 +303,10 @@ bool Renderer::CheckForResize()
return false;
}
void Renderer::SetScissorRect(const TargetRectangle& rc)
void Renderer::SetScissorRect(const EFBRectangle& rc)
{
D3D::context->RSSetScissorRects(1, rc.AsRECT());
TargetRectangle trc = ConvertEFBRectangle(rc);
D3D::context->RSSetScissorRects(1, trc.AsRECT());
}
void Renderer::SetColorMask()