Skip to content

Commit

Permalink
Fix camera texture aspect ratio in hardware renderer
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chewi authored and coelckers committed Mar 18, 2021
1 parent 229b065 commit 8ef0254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/hwrenderer/hw_entrypoint.cpp
Expand Up @@ -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);
});
});
Expand Down

0 comments on commit 8ef0254

Please sign in to comment.