- made wall draw code API independent.

This commit is contained in:
Christoph Oelckers 2018-10-21 13:53:50 +02:00
commit 8ffeb7812f
12 changed files with 275 additions and 264 deletions

View file

@ -132,6 +132,7 @@ void GLDecal::DrawDecal(HWDrawInfo *di, FRenderState &state)
void HWDrawInfo::DrawDecals(FRenderState &state, TArray<GLDecal *> &decals)
{
side_t *wall = nullptr;
SetDepthMask(false);
state.SetDepthBias(-1, -128);
for (auto gldecal : decals)
{
@ -153,6 +154,7 @@ void HWDrawInfo::DrawDecals(FRenderState &state, TArray<GLDecal *> &decals)
state.EnableSplit(false);
state.ClearDepthBias();
state.SetTextureMode(TM_NORMAL);
SetDepthMask(true);
}
//==========================================================================