work around a believed issue with ericw-qbsp's skip texture support - if an invalid surface is referenced, don't try to generate decals from it.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5198 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2018-01-14 05:32:20 +00:00
parent 2d68fbfb55
commit 4290e56c56
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ static void Fragment_Mesh (fragmentdecal_t *dec, mesh_t *mesh, mtexinfo_t *texin
vecV_t verts[3];
shader_t *surfshader = texinfo->texture->shader;
if (surfshader->flags & SHADER_NOMARKS)
if ((surfshader->flags & SHADER_NOMARKS) || !mesh)
return;
if (dec->surfflagmask)