Fix GL y-shearing ignoring a Y-flipped transform

This commit is contained in:
Jaime Passos 2020-07-10 19:19:51 -03:00
parent 958d397cdb
commit d87c874559
1 changed files with 2 additions and 0 deletions

View File

@ -2939,6 +2939,8 @@ EXPORT void HWRAPI(SetTransform) (FTransform *stransform)
if (shearing)
{
float fdy = stransform->viewaiming * 2;
if (stransform->flip)
fdy *= -1.0f;
pglTranslatef(0.0f, -fdy/BASEVIDHEIGHT, 0.0f);
}