mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 21:51:09 +00:00
* Fixed the fix for the shader overrun. If this isn't a case for unified diffs,
I don't know what is :).
This commit is contained in:
parent
b9c9f86cd1
commit
653c5621ac
1 changed files with 6 additions and 6 deletions
|
@ -1432,6 +1432,12 @@ static qboolean ParseShader( char **text )
|
||||||
// stage definition
|
// stage definition
|
||||||
else if ( token[0] == '{' )
|
else if ( token[0] == '{' )
|
||||||
{
|
{
|
||||||
|
// 20051019 misantropia -- fix buffer overrun.
|
||||||
|
if ( s >= MAX_SHADER_STAGES ) {
|
||||||
|
ri.Printf( PRINT_WARNING, "WARNING: too many stages in shader %s\n", shader.name );
|
||||||
|
return qfalse;
|
||||||
|
}
|
||||||
|
|
||||||
if ( !ParseStage( &stages[s], text ) )
|
if ( !ParseStage( &stages[s], text ) )
|
||||||
{
|
{
|
||||||
return qfalse;
|
return qfalse;
|
||||||
|
@ -1439,12 +1445,6 @@ static qboolean ParseShader( char **text )
|
||||||
stages[s].active = qtrue;
|
stages[s].active = qtrue;
|
||||||
s++;
|
s++;
|
||||||
|
|
||||||
// 20051019 misantropia -- fix buffer overrun.
|
|
||||||
if ( s >= MAX_SHADER_STAGES ) {
|
|
||||||
ri.Printf( PRINT_WARNING, "WARNING: too many stages in shader %s\n", shader.name );
|
|
||||||
return qfalse;
|
|
||||||
}
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// skip stuff that only the QuakeEdRadient needs
|
// skip stuff that only the QuakeEdRadient needs
|
||||||
|
|
Loading…
Reference in a new issue