Skip to content

Commit

Permalink
fix lifetime of skyinfo variable in HWWall::SkyPlane.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers authored and madame-rachelle committed Apr 28, 2024
1 parent 387e59c commit 98a0b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/hwrenderer/scene/hw_sky.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 98a0b5f

Please sign in to comment.