mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-12 21:22:14 +00:00
Actually take into account how SkipBracedSection works. It requires a section to start with a single separate '{'. So we need to require this here, too.
This commit is contained in:
parent
f5b3a13313
commit
0811b1c99c
1 changed files with 1 additions and 1 deletions
|
@ -2906,7 +2906,7 @@ static void ScanAndLoadShaderFiles( void )
|
|||
oldp = p;
|
||||
|
||||
token = COM_ParseExt(&p, qtrue);
|
||||
if(*token != '{')
|
||||
if(token[0] != '{' && token[1] != '\0')
|
||||
{
|
||||
ri.Printf(PRINT_WARNING, "WARNING: Bad shader file %s has incorrect syntax.\n", filename);
|
||||
ri.FS_FreeFile(buffers[i]);
|
||||
|
|
Loading…
Reference in a new issue