fix ogl y shearing verical aim
This commit is contained in:
parent
98f8bd46cd
commit
bed5bb3215
1 changed files with 1 additions and 1 deletions
|
|
@ -3158,7 +3158,7 @@ EXPORT void HWRAPI(SetTransform) (FTransform *stransform)
|
|||
// https://zdoom.org/wiki/Y-shearing
|
||||
if (shearing)
|
||||
{
|
||||
float fdy = stransform->viewaiming * 2;
|
||||
float fdy = stransform->viewaiming * 2 * ((float)vid.width / vid.height) / ((float)BASEVIDWIDTH / BASEVIDHEIGHT); //screen_width/BASEVIDWIDTH;
|
||||
if (stransform->flip)
|
||||
fdy *= -1.0f;
|
||||
pglTranslatef(0.0f, -fdy/BASEVIDHEIGHT, 0.0f);
|
||||
|
|
|
|||
Loading…
Reference in a new issue