VideoCommon: move ViewportCorrection into VideoCommon

D3D doesn't allow bigger viewports than rendertargets. But flipper does, so the viewport will be clipped and the transformation matrix will be changed.
This was done in the D3D backend itself. This is now moved into VideoCommon. This don't reduce code, but in this way, VideoCommon doesn't depend on the backends.
This commit is contained in:
degasus
2013-10-14 15:16:42 +02:00
parent 0002236e3e
commit 3151d8709c
10 changed files with 92 additions and 63 deletions

View File

@ -520,8 +520,8 @@ void Renderer::RecordVideoMemory()
FifoRecorder::GetInstance().SetVideoMemory(bpMem, cpMem, xfMem, xfRegs, sizeof(XFRegisters) / 4);
}
void UpdateViewport(Matrix44& vpCorrection)
void UpdateViewport()
{
if (xfregs.viewport.wd != 0 && xfregs.viewport.ht != 0)
g_renderer->UpdateViewport(vpCorrection);
g_renderer->UpdateViewport();
}