mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-23 20:52:54 +00:00
Inform how many shader stages the max is in the warning message
This commit is contained in:
parent
2742dfad26
commit
43c7f1e734
2 changed files with 2 additions and 2 deletions
|
@ -1459,7 +1459,7 @@ static qboolean ParseShader( char **text )
|
|||
else if ( token[0] == '{' )
|
||||
{
|
||||
if ( s >= MAX_SHADER_STAGES ) {
|
||||
ri.Printf( PRINT_WARNING, "WARNING: too many stages in shader %s\n", shader.name );
|
||||
ri.Printf( PRINT_WARNING, "WARNING: too many stages in shader %s (max is %i)\n", shader.name, MAX_SHADER_STAGES );
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
|
|
|
@ -1714,7 +1714,7 @@ static qboolean ParseShader( char **text )
|
|||
else if ( token[0] == '{' )
|
||||
{
|
||||
if ( s >= MAX_SHADER_STAGES ) {
|
||||
ri.Printf( PRINT_WARNING, "WARNING: too many stages in shader %s\n", shader.name );
|
||||
ri.Printf( PRINT_WARNING, "WARNING: too many stages in shader %s (max is %i)\n", shader.name, MAX_SHADER_STAGES );
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue