mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
fix lifetime of skyinfo variable in HWWall::SkyPlane.
This commit is contained in:
parent
387e59cba7
commit
98a0b5f8d2
1 changed files with 1 additions and 1 deletions
|
@ -137,9 +137,9 @@ void HWWall::SkyPlane(HWWallDispatcher *di, sector_t *sector, int plane, bool al
|
|||
// Either a regular sky or a skybox with skyboxes disabled
|
||||
if ((sportal == nullptr && sector->GetTexture(plane) == skyflatnum) || (gl_noskyboxes && sportal != nullptr && sportal->mType == PORTS_SKYVIEWPOINT))
|
||||
{
|
||||
HWSkyInfo skyinfo;
|
||||
if (di->di)
|
||||
{
|
||||
HWSkyInfo skyinfo;
|
||||
skyinfo.init(di->di, sector, plane, sector->skytransfer, Colormap.FadeColor);
|
||||
ptype = PORTALTYPE_SKY;
|
||||
sky = &skyinfo;
|
||||
|
|
Loading…
Reference in a new issue