diff options
author | Anthony Pesch <inolen@gmail.com> | 2014-01-14 13:19:15 -0800 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:38 +0100 |
commit | 6a1b3a45aad98408c9e93fd98654db754f33ce1c (patch) | |
tree | bb67e3d987a66d67fcb576620541a189c9df0363 | |
parent | dff1f5ae51213ca7df5db257284dfb3def20b6fc (diff) |
don't call va each frame in GLSL_VertexAttribPointers
-rw-r--r-- | src/renderergl2/tr_glsl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/renderergl2/tr_glsl.c b/src/renderergl2/tr_glsl.c index 3b6f6306..2212c4fe 100644 --- a/src/renderergl2/tr_glsl.c +++ b/src/renderergl2/tr_glsl.c @@ -1647,7 +1647,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; |