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:
parent
2118c1d3c3
commit
92fdac412b
|
@ -49,8 +49,6 @@ void SetScissor()
|
||||||
|
|
||||||
TargetRectangle trc = g_renderer->ConvertEFBRectangle(rc);
|
TargetRectangle trc = g_renderer->ConvertEFBRectangle(rc);
|
||||||
g_renderer->SetScissorRect(trc);
|
g_renderer->SetScissorRect(trc);
|
||||||
|
|
||||||
UpdateViewportWithCorrection();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetLineWidth()
|
void SetLineWidth()
|
||||||
|
|
|
@ -185,6 +185,7 @@ void BPWritten(const BPCmd& bp)
|
||||||
case BPMEM_SCISSORBR: // Scissor Rectable Bottom, Right
|
case BPMEM_SCISSORBR: // Scissor Rectable Bottom, Right
|
||||||
case BPMEM_SCISSOROFFSET: // Scissor Offset
|
case BPMEM_SCISSOROFFSET: // Scissor Offset
|
||||||
SetScissor();
|
SetScissor();
|
||||||
|
VertexShaderManager::SetViewportChanged();
|
||||||
break;
|
break;
|
||||||
case BPMEM_LINEPTWIDTH: // Line Width
|
case BPMEM_LINEPTWIDTH: // Line Width
|
||||||
SetLineWidth();
|
SetLineWidth();
|
||||||
|
|
|
@ -175,13 +175,6 @@ static void ViewportCorrectionMatrix(Matrix44& result)
|
||||||
|
|
||||||
void UpdateViewport();
|
void UpdateViewport();
|
||||||
|
|
||||||
void UpdateViewportWithCorrection()
|
|
||||||
{
|
|
||||||
// TODO: get rid of this function
|
|
||||||
ViewportCorrectionMatrix(s_viewportCorrection);
|
|
||||||
UpdateViewport();
|
|
||||||
}
|
|
||||||
|
|
||||||
void VertexShaderManager::Init()
|
void VertexShaderManager::Init()
|
||||||
{
|
{
|
||||||
Dirty();
|
Dirty();
|
||||||
|
|
|
@ -12,8 +12,6 @@ class PointerWrap;
|
||||||
|
|
||||||
void UpdateProjectionHack(int iParams[], std::string sParams[]);
|
void UpdateProjectionHack(int iParams[], std::string sParams[]);
|
||||||
|
|
||||||
void UpdateViewportWithCorrection();
|
|
||||||
|
|
||||||
// The non-API dependent parts.
|
// The non-API dependent parts.
|
||||||
class VertexShaderManager
|
class VertexShaderManager
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue