Add missing reset of LightIndex after use

This commit is contained in:
Magnus Norddahl 2022-08-18 17:16:37 +02:00 committed by Christoph Oelckers
parent 4701ce96d8
commit b81a51dabe

View file

@ -298,6 +298,7 @@ void HWSprite::DrawSprite(HWDrawInfo *di, FRenderState &state, bool translucent)
FHWModelRenderer renderer(di, state, dynlightindex); FHWModelRenderer renderer(di, state, dynlightindex);
RenderModel(&renderer, x, y, z, modelframe, actor, di->Viewpoint.TicFrac); RenderModel(&renderer, x, y, z, modelframe, actor, di->Viewpoint.TicFrac);
state.SetVertexBuffer(screen->mVertexData); state.SetVertexBuffer(screen->mVertexData);
state.SetLightIndex(-1);
} }
} }