Merge branch 'gl-shearing-flip-fix' into 'next'
Fix GL y-shearing ignoring a Y-flipped transform See merge request STJr/SRB2!1051
This commit is contained in:
commit
bc138c5482
|
@ -2939,6 +2939,8 @@ EXPORT void HWRAPI(SetTransform) (FTransform *stransform)
|
||||||
if (shearing)
|
if (shearing)
|
||||||
{
|
{
|
||||||
float fdy = stransform->viewaiming * 2;
|
float fdy = stransform->viewaiming * 2;
|
||||||
|
if (stransform->flip)
|
||||||
|
fdy *= -1.0f;
|
||||||
pglTranslatef(0.0f, -fdy/BASEVIDHEIGHT, 0.0f);
|
pglTranslatef(0.0f, -fdy/BASEVIDHEIGHT, 0.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue