From ee18fdeb83212f82d311a6dc646f9bb6fb938da7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 28 Feb 2016 10:10:01 +0100 Subject: [PATCH] - fixed: Visplane merging should not be done for linedef based portals. --- src/gl/scene/gl_flats.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gl/scene/gl_flats.cpp b/src/gl/scene/gl_flats.cpp index ff42999b4e..c6ca9df960 100644 --- a/src/gl/scene/gl_flats.cpp +++ b/src/gl/scene/gl_flats.cpp @@ -528,7 +528,10 @@ void GLFlat::ProcessSector(sector_t * frontsector) { if (!frontsector->PortalBlocksView(sector_t::floor)) { - gl_drawinfo->AddFloorStack(sector); + if (sector->SkyBoxes[sector_t::floor]->special1 == SKYBOX_STACKEDSECTORTHING) + { + gl_drawinfo->AddFloorStack(sector); + } alpha = frontsector->GetAlpha(sector_t::floor) / 65536.0f; } else @@ -586,7 +589,10 @@ void GLFlat::ProcessSector(sector_t * frontsector) { if (!frontsector->PortalBlocksView(sector_t::ceiling)) { - gl_drawinfo->AddCeilingStack(sector); + if (sector->SkyBoxes[sector_t::ceiling]->special1 == SKYBOX_STACKEDSECTORTHING) + { + gl_drawinfo->AddCeilingStack(sector); + } alpha = frontsector->GetAlpha(sector_t::ceiling) / 65536.0f; } else