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:
Thilo Schulz 2008-04-06 02:24:07 +00:00
parent f5b3a13313
commit 0811b1c99c
1 changed files with 1 additions and 1 deletions

View File

@ -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]);