mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 05:01:41 +00:00
Clip portals to viewheight, not screen height
- Aside, but is this even neccessary? The arrays being copied from should already be clipped properly.
This commit is contained in:
parent
015cbb1061
commit
48b6b6e057
1 changed files with 4 additions and 4 deletions
|
@ -2643,12 +2643,12 @@ void R_StoreWallRange (int start, int stop)
|
|||
{
|
||||
if (pds.ceilingclip[i] < 0)
|
||||
pds.ceilingclip[i] = 0;
|
||||
if (pds.ceilingclip[i] >= RenderTarget->GetHeight())
|
||||
pds.ceilingclip[i] = RenderTarget->GetHeight()-1;
|
||||
if (pds.ceilingclip[i] >= viewheight)
|
||||
pds.ceilingclip[i] = viewheight-1;
|
||||
if (pds.floorclip[i] < 0)
|
||||
pds.floorclip[i] = 0;
|
||||
if (pds.floorclip[i] >= RenderTarget->GetHeight())
|
||||
pds.floorclip[i] = RenderTarget->GetHeight()-1;
|
||||
if (pds.floorclip[i] >= viewheight)
|
||||
pds.floorclip[i] = viewheight-1;
|
||||
}
|
||||
|
||||
pds.mirror = curline->linedef->special == Line_Mirror;
|
||||
|
|
Loading…
Reference in a new issue