mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- 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:
parent
f77c4642cb
commit
22b7a38539
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue