summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnsiform <ensiform@gmail.com>2015-01-25 14:30:13 -0600
committerTim Angus <tim@ngus.net>2015-03-17 11:43:04 +0000
commit871f7453dc06d70314141d44921ea4af502171ef (patch)
treede8b5cdde3b824932976659d240a454f0a261b23
parentf5382657cf96e2fe71e33b531ec197856825b51d (diff)
Inform how many shader stages the max is in the warning message
-rw-r--r--src/renderergl1/tr_shader.c2
-rw-r--r--src/renderergl2/tr_shader.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/renderergl1/tr_shader.c b/src/renderergl1/tr_shader.c
index 9bc60bea..2a66afd0 100644
--- a/src/renderergl1/tr_shader.c
+++ b/src/renderergl1/tr_shader.c
@@ -1460,7 +1460,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;
}
diff --git a/src/renderergl2/tr_shader.c b/src/renderergl2/tr_shader.c
index a4b31484..4143b246 100644
--- a/src/renderergl2/tr_shader.c
+++ b/src/renderergl2/tr_shader.c
@@ -1715,7 +1715,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;
}