Check for shaders without closing brace

Shaders without closing brace can eat shaders in other files.
Pass depth to SkipBracedSection instead of reparsing text as it messed up parse line numbers.
This commit is contained in:
Zack Middleton 2013-06-02 21:55:19 -05:00
parent c0a21d0898
commit 3ec2b02dce
4 changed files with 41 additions and 21 deletions

View file

@ -752,7 +752,7 @@ typedef struct pc_token_s
void COM_MatchToken( char**buf_p, char *match );
void SkipBracedSection (char **program);
qboolean SkipBracedSection (char **program, int depth);
void SkipRestOfLine ( char **data );
void Parse1DMatrix (char **buf_p, int x, float *m);