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 committed 2013-06-02 21:55:19 -05:00
1 parent c0a21d0898
commit 3ec2b02dce
4 files changed
+41 -21

No files matched your search

+1 -1
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);