- made wall draw code API independent.
This commit is contained in:
parent
7897f26abf
commit
8ffeb7812f
12 changed files with 275 additions and 264 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue