Make sure that one broken shader file cannot crash the game / make the other shaders unusable.
This commit is contained in:
parent
85bee47f52
commit
5c1167557a
2 changed files with 42 additions and 10 deletions
|
@ -599,7 +599,7 @@ void SkipBracedSection (char **program) {
|
|||
depth = 0;
|
||||
do {
|
||||
token = COM_ParseExt( program, qtrue );
|
||||
if( token[1] == 0 ) {
|
||||
if( *program && token[1] == 0 ) {
|
||||
if( token[0] == '{' ) {
|
||||
depth++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue