Give -1 to model light index otherwise mLightIndex in renderstate ends up getting set to 0 which is a valid light index

This commit is contained in:
Emile Belanger 2021-05-12 22:27:33 +01:00 committed by Christoph Oelckers
parent e5dd4a8638
commit a6f62773cb

View file

@ -115,7 +115,7 @@ void GLInstance::DoDraw()
} }
else else
{ {
FHWModelRenderer mr(*screen->RenderState(), 0); FHWModelRenderer mr(*screen->RenderState(), -1);
state.SetDepthFunc(DF_LEqual); state.SetDepthFunc(DF_LEqual);
state.EnableTexture(true); state.EnableTexture(true);
rs.model->BuildVertexBuffer(&mr); rs.model->BuildVertexBuffer(&mr);