mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
Fix camera texture aspect ratio in hardware renderer
It wasn't respecting the map's pixel ratio setting. This wouldn't have been very noticeable with the default pixel ratio of 1.2 but it was very obvious with 1.8.
This commit is contained in:
parent
229b065289
commit
8ef02544a7
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ sector_t* RenderView(player_t* player)
|
|||
screen->RenderTextureView(camtex, [=](IntRect& bounds)
|
||||
{
|
||||
FRenderViewpoint texvp;
|
||||
float ratio = camtex->aspectRatio;
|
||||
float ratio = camtex->aspectRatio / Level->info->pixelstretch;
|
||||
RenderViewpoint(texvp, camera, &bounds, fov, ratio, ratio, false, false);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue