- do a texture check when drawing fog borders in the software renderer. this does not fix the crash issue, but mitigates it enough with a check that likely should be in place, anyhow.

This commit is contained in:
Rachael Alexanderson 2018-10-30 01:12:50 -04:00
parent 0c686e6f92
commit 94688a3700

View file

@ -159,6 +159,9 @@ namespace swrenderer
auto viewport = Thread->Viewport.get();
Clip3DFloors *clip3d = Thread->Clip3D.get();
if (curline->sidedef->GetTexture(side_t::mid).isNull())
return false;
FTexture *tex = TexMan(curline->sidedef->GetTexture(side_t::mid), true);
if (i_compatflags & COMPATF_MASKEDMIDTEX)
{