mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 11:30:44 +00:00
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:
parent
e5dd4a8638
commit
a6f62773cb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue