- removed gl dependencies from gl_sky.cpp by moving some data into other places.

This commit is contained in:
Christoph Oelckers 2018-04-28 00:18:49 +02:00
commit cc926dec1e
9 changed files with 21 additions and 24 deletions

View file

@ -463,6 +463,7 @@ void FDrawInfo::AddPortal(GLWall *wall, int ptype)
break;
case PORTALTYPE_SKY:
wall->sky = UniqueSkies.Get(wall->sky);
portal = GLPortal::FindPortal(wall->sky);
if (!portal) portal = new GLSkyPortal(wall->sky);
portal->AddLine(wall);