- made CheckViewArea a global function.

This can be put into the common hwrenderer folder but for that it shouldn't be part of the scene drawer.
This commit is contained in:
Christoph Oelckers 2018-04-23 22:10:11 +02:00
commit 60567f207c
4 changed files with 5 additions and 6 deletions

View file

@ -146,7 +146,7 @@ void GLSceneDrawer::AddLine (seg_t *seg, bool portalclip)
else
{
// clipping checks are only needed when the backsector is not the same as the front sector
CheckViewArea(seg->v1, seg->v2, seg->frontsector, seg->backsector);
in_area = gl_CheckViewArea(in_area, seg->v1, seg->v2, seg->frontsector, seg->backsector);
backsector = gl_FakeFlat(seg->backsector, &bs, in_area, true);