[iortcw] 281/497: All: Inform how many shader stages the max is in the warning message

Simon McVittie smcv at debian.org
Fri Sep 8 10:37:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 105f33e347833e680dc962e19c5bf5839d2f1674
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Tue Jan 27 20:47:06 2015 +0000

    All: Inform how many shader stages the max is in the warning message
---
 MP/code/rend2/tr_shader.c    | 2 +-
 MP/code/renderer/tr_shader.c | 2 +-
 SP/code/rend2/tr_shader.c    | 2 +-
 SP/code/renderer/tr_shader.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/MP/code/rend2/tr_shader.c b/MP/code/rend2/tr_shader.c
index f579a2d..d568044 100644
--- a/MP/code/rend2/tr_shader.c
+++ b/MP/code/rend2/tr_shader.c
@@ -1670,7 +1670,7 @@ static qboolean ParseShader( char **text ) {
 		// stage definition
 		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/MP/code/renderer/tr_shader.c b/MP/code/renderer/tr_shader.c
index 5e986f7..607841e 100644
--- a/MP/code/renderer/tr_shader.c
+++ b/MP/code/renderer/tr_shader.c
@@ -1427,7 +1427,7 @@ static qboolean ParseShader( char **text ) {
 		// stage definition
 		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/SP/code/rend2/tr_shader.c b/SP/code/rend2/tr_shader.c
index 1d73743..d821eaa 100644
--- a/SP/code/rend2/tr_shader.c
+++ b/SP/code/rend2/tr_shader.c
@@ -1675,7 +1675,7 @@ static qboolean ParseShader( char **text ) {
 		// stage definition
 		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/SP/code/renderer/tr_shader.c b/SP/code/renderer/tr_shader.c
index d8da0df..8685567 100644
--- a/SP/code/renderer/tr_shader.c
+++ b/SP/code/renderer/tr_shader.c
@@ -1427,7 +1427,7 @@ static qboolean ParseShader( char **text ) {
 		// stage definition
 		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;
 			}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list