Update the viewport when the scissor offset is changed
Fixes a bug with Another Code: R that was noticed when gx-optimization was merged.
This commit is contained in:
parent
00f6b7b6ea
commit
bfde41895f
|
@ -62,6 +62,8 @@ void SetScissor()
|
|||
|
||||
TargetRectangle trc = g_renderer->ConvertEFBRectangle(rc);
|
||||
g_renderer->SetScissorRect(trc);
|
||||
|
||||
UpdateViewportWithCorrection();
|
||||
}
|
||||
|
||||
void SetLineWidth()
|
||||
|
|
|
@ -51,6 +51,11 @@ static float s_fViewRotation[2];
|
|||
|
||||
void UpdateViewport(Matrix44& vpCorrection);
|
||||
|
||||
void UpdateViewportWithCorrection()
|
||||
{
|
||||
UpdateViewport(s_viewportCorrection);
|
||||
}
|
||||
|
||||
inline void SetVSConstant4f(unsigned int const_number, float f1, float f2, float f3, float f4)
|
||||
{
|
||||
g_renderer->SetVSConstant4f(const_number, f1, f2, f3, f4);
|
||||
|
|
|
@ -33,6 +33,8 @@ struct ProjectionHack
|
|||
|
||||
void UpdateProjectionHack(int iParams[], std::string sParams[]);
|
||||
|
||||
void UpdateViewportWithCorrection();
|
||||
|
||||
// The non-API dependent parts.
|
||||
class VertexShaderManager
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue