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] == '{' )
|
else if ( token[0] == '{' )
|
||||||
{
|
{
|
||||||
if ( s >= MAX_SHADER_STAGES ) {
|
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;
|
return qfalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1714,7 +1714,7 @@ static qboolean ParseShader( char **text )
|
||||||
else if ( token[0] == '{' )
|
else if ( token[0] == '{' )
|
||||||
{
|
{
|
||||||
if ( s >= MAX_SHADER_STAGES ) {
|
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;
|
return qfalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue