- fixed incorrect sky texture check with Transfer_Heights. The actual sector was checked, not the one created by gl_FakeFlat.

This commit is contained in:
Christoph Oelckers 2016-04-24 14:17:06 +02:00
parent f77c4642cb
commit 22b7a38539
1 changed files with 2 additions and 2 deletions

View File

@ -602,7 +602,7 @@ void GLFlat::ProcessSector(sector_t * frontsector)
alpha = 1.0f - frontsector->GetReflect(sector_t::floor);
}
if (alpha != 0.f && sector->GetTexture(sector_t::floor) != skyflatnum)
if (alpha != 0.f && frontsector->GetTexture(sector_t::floor) != skyflatnum)
{
if (frontsector->VBOHeightcheck(sector_t::floor))
{
@ -661,7 +661,7 @@ void GLFlat::ProcessSector(sector_t * frontsector)
alpha = 1.0f - frontsector->GetReflect(sector_t::ceiling);
}
if (alpha != 0.f && sector->GetTexture(sector_t::ceiling) != skyflatnum)
if (alpha != 0.f && frontsector->GetTexture(sector_t::ceiling) != skyflatnum)
{
if (frontsector->VBOHeightcheck(sector_t::ceiling))
{