mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-24 12:51:09 +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)
|
else if (sector->GetTexture(plane)==skyflatnum)
|
||||||
{
|
{
|
||||||
GLSkyInfo skyinfo;
|
GLSkyInfo skyinfo;
|
||||||
ASkyViewpoint * skyboxx = plane == sector_t::floor? sector->FloorSkyBox : sector->CeilingSkyBox;
|
ASkyViewpoint * skyboxx = sector->GetSkyBox(plane);
|
||||||
if (skyboxx == NULL) skyboxx = level.DefaultSkybox;
|
|
||||||
|
|
||||||
// JUSTHIT is used as an indicator that a skybox is in use.
|
// JUSTHIT is used as an indicator that a skybox is in use.
|
||||||
// This is to avoid recursion
|
// This is to avoid recursion
|
||||||
|
|
Loading…
Reference in a new issue