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:
parent
2d68fbfb55
commit
4290e56c56
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ static void Fragment_Mesh (fragmentdecal_t *dec, mesh_t *mesh, mtexinfo_t *texin
|
||||||
vecV_t verts[3];
|
vecV_t verts[3];
|
||||||
shader_t *surfshader = texinfo->texture->shader;
|
shader_t *surfshader = texinfo->texture->shader;
|
||||||
|
|
||||||
if (surfshader->flags & SHADER_NOMARKS)
|
if ((surfshader->flags & SHADER_NOMARKS) || !mesh)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (dec->surfflagmask)
|
if (dec->surfflagmask)
|
||||||
|
|
Loading…
Reference in a new issue