mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- fixed skybox picking in GL renderer.
This commit is contained in:
parent
4ed78d78cc
commit
b00b49c111
1 changed files with 1 additions and 2 deletions
|
@ -80,8 +80,7 @@ void GLWall::SkyPlane(sector_t *sector, int plane, bool allowreflect)
|
|||
else if (sector->GetTexture(plane)==skyflatnum)
|
||||
{
|
||||
GLSkyInfo skyinfo;
|
||||
ASkyViewpoint * skyboxx = plane == sector_t::floor? sector->FloorSkyBox : sector->CeilingSkyBox;
|
||||
if (skyboxx == NULL) skyboxx = level.DefaultSkybox;
|
||||
ASkyViewpoint * skyboxx = sector->GetSkyBox(plane);
|
||||
|
||||
// JUSTHIT is used as an indicator that a skybox is in use.
|
||||
// This is to avoid recursion
|
||||
|
|
Loading…
Reference in a new issue