fix bloom etc bug.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4968 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
e1a096bac2
commit
76c9f48d13
1 changed files with 3 additions and 2 deletions
|
@ -985,8 +985,9 @@ static qboolean Shader_ParseProgramCvar(char *script, cvar_t **cvarrefs, char **
|
|||
script++;
|
||||
|
||||
out = body;
|
||||
while (out < com_token+countof(body) && *script != '\n')
|
||||
*out++;
|
||||
while (out < com_token+countof(body)-1 && *script != '\n' && !(script[0] == '/' && script[1] == '/'))
|
||||
*out++ = *script++;
|
||||
*out++ = 0;
|
||||
cvarrefs[0] = Cvar_Get(cvarnames[0], body, 0, "GLSL Variables");
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue