Make sure that one broken shader file cannot crash the game / make the other shaders unusable.
This commit is contained in:
1 parent
85bee47f52
commit
5c1167557a
2 files changed
+42
-10
No files matched your search
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user