Skip to content

Commit d45a4f1

Browse files
committed
fix lifetime of skyinfo variable in HWWall::SkyPlane.
1 parent a938e9c commit d45a4f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rendering/hwrenderer/scene/hw_sky.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ void HWWall::SkyPlane(HWWallDispatcher *di, sector_t *sector, int plane, bool al
137137
// Either a regular sky or a skybox with skyboxes disabled
138138
if ((sportal == nullptr && sector->GetTexture(plane) == skyflatnum) || (gl_noskyboxes && sportal != nullptr && sportal->mType == PORTS_SKYVIEWPOINT))
139139
{
140+
HWSkyInfo skyinfo;
140141
if (di->di)
141142
{
142-
HWSkyInfo skyinfo;
143143
skyinfo.init(di->di, sector, plane, sector->skytransfer, Colormap.FadeColor);
144144
ptype = PORTALTYPE_SKY;
145145
sky = &skyinfo;

0 commit comments

Comments
 (0)