[iortcw] 05/497: All: Rend2: Dont call va each frame in GLSL_VertexAttribPointers

Simon McVittie smcv at debian.org
Fri Sep 8 10:35:58 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 9fed9499574d321ffc251c162ba7153e868e9c76
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Wed Jan 15 00:21:27 2014 +0000

    All: Rend2: Dont call va each frame in GLSL_VertexAttribPointers
---
 MP/code/rend2/tr_glsl.c | 5 ++++-
 SP/code/rend2/tr_glsl.c | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/MP/code/rend2/tr_glsl.c b/MP/code/rend2/tr_glsl.c
index 693e443..db55c15 100644
--- a/MP/code/rend2/tr_glsl.c
+++ b/MP/code/rend2/tr_glsl.c
@@ -1653,7 +1653,10 @@ void GLSL_VertexAttribPointers(uint32_t attribBits)
 	}
 
 	// don't just call LogComment, or we will get a call to va() every frame!
-	GLimp_LogComment(va("--- GL_VertexAttribPointers( %s ) ---\n", vbo->name));
+	if(r_logFile->integer)
+	{
+		GLimp_LogComment(va("--- GL_VertexAttribPointers( %s ) ---\n", vbo->name));
+	}
 
 	// position/normal/tangent are always set in case of animation
 	oldFrame = glState.vertexAttribsOldFrame;
diff --git a/SP/code/rend2/tr_glsl.c b/SP/code/rend2/tr_glsl.c
index 693e443..db55c15 100644
--- a/SP/code/rend2/tr_glsl.c
+++ b/SP/code/rend2/tr_glsl.c
@@ -1653,7 +1653,10 @@ void GLSL_VertexAttribPointers(uint32_t attribBits)
 	}
 
 	// don't just call LogComment, or we will get a call to va() every frame!
-	GLimp_LogComment(va("--- GL_VertexAttribPointers( %s ) ---\n", vbo->name));
+	if(r_logFile->integer)
+	{
+		GLimp_LogComment(va("--- GL_VertexAttribPointers( %s ) ---\n", vbo->name));
+	}
 
 	// position/normal/tangent are always set in case of animation
 	oldFrame = glState.vertexAttribsOldFrame;

-- 
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