- fixed: F2DDrawer::AddPoly was missing a texture validation check.

This caused problems when the automap wanted to render portal planes, which normally use an invalid texture as marker.
Fixes #263
This commit is contained in:
Christoph Oelckers 2021-02-02 23:13:11 +01:00
parent cf672b508f
commit 8e0c50c22c
1 changed files with 2 additions and 0 deletions

View File

@ -721,6 +721,8 @@ void F2DDrawer::AddPoly(FGameTexture* img, FVector4* vt, size_t vtcount, unsigne
RenderCommand dg;
int method = 0;
if (!img->isValid()) return;
dg.mType = DrawTypeTriangles;
if (clipx1 > 0 || clipy1 > 0 || clipx2 < GetWidth() - 1 || clipy2 < GetHeight() - 1)
{