Inform how many shader stages the max is in the warning message

This commit is contained in:
Ensiform authored and Zack Middleton committed 2015-01-26 02:39:59 -06:00
1 parent 2742dfad26
commit 43c7f1e734
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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;
}