1
0
Fork 0
forked from fte/fteqw

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

View file

@ -985,8 +985,9 @@ static qboolean Shader_ParseProgramCvar(char *script, cvar_t **cvarrefs, char **
script++; script++;
out = body; out = body;
while (out < com_token+countof(body) && *script != '\n') while (out < com_token+countof(body)-1 && *script != '\n' && !(script[0] == '/' && script[1] == '/'))
*out++; *out++ = *script++;
*out++ = 0;
cvarrefs[0] = Cvar_Get(cvarnames[0], body, 0, "GLSL Variables"); cvarrefs[0] = Cvar_Get(cvarnames[0], body, 0, "GLSL Variables");
} }
else else