Fixed r_showshaders crashing on a surface without shadername.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5335 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Eukara 2018-11-10 08:26:51 +00:00
parent 2d539675cf
commit 4cabdb80c5

View file

@ -7300,6 +7300,7 @@ char *Shader_GetShaderBody(shader_t *s, char *fname, size_t fnamesize)
} }
} }
if ( parsename ) {
if (!strchr(parsename, ':')) if (!strchr(parsename, ':'))
{ {
//if the named shader is a .shader file then just directly load it. //if the named shader is a .shader file then just directly load it.
@ -7318,6 +7319,7 @@ char *Shader_GetShaderBody(shader_t *s, char *fname, size_t fnamesize)
} }
} }
} }
}
#ifdef _DEBUG #ifdef _DEBUG
{ {