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:
parent
c0a21d0898
commit
3ec2b02dce
4 changed files with 41 additions and 21 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue