VideoCommon: drop UpdateViewportWithCorrection

It's only used once in BPFunction which itself is also only used once.
So the setter is moved to BPStructs like all other ones.
This commit is contained in:
degasus 2013-10-24 14:06:48 +02:00
parent 2118c1d3c3
commit 92fdac412b
4 changed files with 1 additions and 11 deletions

View File

@ -49,8 +49,6 @@ void SetScissor()
TargetRectangle trc = g_renderer->ConvertEFBRectangle(rc);
g_renderer->SetScissorRect(trc);
UpdateViewportWithCorrection();
}
void SetLineWidth()

View File

@ -185,6 +185,7 @@ void BPWritten(const BPCmd& bp)
case BPMEM_SCISSORBR: // Scissor Rectable Bottom, Right
case BPMEM_SCISSOROFFSET: // Scissor Offset
SetScissor();
VertexShaderManager::SetViewportChanged();
break;
case BPMEM_LINEPTWIDTH: // Line Width
SetLineWidth();

View File

@ -175,13 +175,6 @@ static void ViewportCorrectionMatrix(Matrix44& result)
void UpdateViewport();
void UpdateViewportWithCorrection()
{
// TODO: get rid of this function
ViewportCorrectionMatrix(s_viewportCorrection);
UpdateViewport();
}
void VertexShaderManager::Init()
{
Dirty();

View File

@ -12,8 +12,6 @@ class PointerWrap;
void UpdateProjectionHack(int iParams[], std::string sParams[]);
void UpdateViewportWithCorrection();
// The non-API dependent parts.
class VertexShaderManager
{