- Fixed crash drawing fog boundaries in the software renderer hopefully this time for real. Based on Rachael's "do a texture check when drawing fog borders" commit. Now it crashes somewhere else tough.

This commit is contained in:
drfrag 2019-09-13 18:47:35 +02:00
parent 457dc8b5a9
commit 9ee78de8fe

View file

@ -156,7 +156,7 @@ namespace swrenderer
auto viewport = Thread->Viewport.get();
Clip3DFloors *clip3d = Thread->Clip3D.get();
if (curline->sidedef->GetTexture(side_t::mid).isNull())
if (!curline->sidedef->GetTexture(side_t::mid).isValid())
return false;
FTexture *tex = TexMan(curline->sidedef->GetTexture(side_t::mid), true);