mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +00:00
Fix aspect ratio bug in LensDistortScene
This commit is contained in:
parent
287acea6b4
commit
7c47806382
1 changed files with 1 additions and 1 deletions
|
@ -569,7 +569,7 @@ void FGLRenderer::LensDistortScene()
|
|||
0.0f
|
||||
};
|
||||
|
||||
float aspect = mSceneViewport.width / mSceneViewport.height;
|
||||
float aspect = mSceneViewport.width / (float)mSceneViewport.height;
|
||||
|
||||
// Scale factor to keep sampling within the input texture
|
||||
float r2 = aspect * aspect * 0.25 + 0.25f;
|
||||
|
|
Loading…
Reference in a new issue