From 871f7453dc06d70314141d44921ea4af502171ef Mon Sep 17 00:00:00 2001 From: Ensiform Date: Sun, 25 Jan 2015 14:30:13 -0600 Subject: Inform how many shader stages the max is in the warning message --- src/renderergl1/tr_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/renderergl1') 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; } -- cgit