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:
Spoike 2015-08-20 06:12:05 +00:00
parent e1a096bac2
commit 76c9f48d13
1 changed files with 3 additions and 2 deletions

View File

@ -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