mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- handle SoftLightLevel properly in the 2D drawer.
This commit is contained in:
parent
fd4d600694
commit
baf93b51af
1 changed files with 2 additions and 1 deletions
|
@ -169,7 +169,7 @@ void Draw2D(F2DDrawer *drawer, FRenderState &state)
|
||||||
}
|
}
|
||||||
state.SetFog(cmd.mColor1, 0);
|
state.SetFog(cmd.mColor1, 0);
|
||||||
state.SetColor(1, 1, 1, 1, cmd.mDesaturate);
|
state.SetColor(1, 1, 1, 1, cmd.mDesaturate);
|
||||||
state.SetSoftLightLevel(cmd.mLightLevel);
|
if (cmd.mFlags & F2DDrawer::DTF_Indexed) state.SetSoftLightLevel(cmd.mLightLevel);
|
||||||
state.SetLightParms(0, 0);
|
state.SetLightParms(0, 0);
|
||||||
|
|
||||||
state.AlphaFunc(Alpha_GEqual, 0.f);
|
state.AlphaFunc(Alpha_GEqual, 0.f);
|
||||||
|
@ -232,6 +232,7 @@ void Draw2D(F2DDrawer *drawer, FRenderState &state)
|
||||||
state.SetTextureMode(TM_NORMAL);
|
state.SetTextureMode(TM_NORMAL);
|
||||||
state.EnableFog(false);
|
state.EnableFog(false);
|
||||||
state.SetScreenFade(1);
|
state.SetScreenFade(1);
|
||||||
|
state.SetSoftLightLevel(255);
|
||||||
state.ResetColor();
|
state.ResetColor();
|
||||||
drawer->mIsFirstPass = false;
|
drawer->mIsFirstPass = false;
|
||||||
twoD.Unclock();
|
twoD.Unclock();
|
||||||
|
|
Loading…
Reference in a new issue