Inform how many shader stages the max is in the warning message
This commit is contained in:
1 parent
2742dfad26
commit
43c7f1e734
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user