mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 15:21:35 +00:00
Merge pull request #30 from inolen/nova_fix
don't call va each frame in GLSL_VertexAttribPointers
This commit is contained in:
commit
aa92f7e76a
1 changed files with 4 additions and 1 deletions
|
@ -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!
|
// don't just call LogComment, or we will get a call to va() every frame!
|
||||||
|
if(r_logFile->integer)
|
||||||
|
{
|
||||||
GLimp_LogComment(va("--- GL_VertexAttribPointers( %s ) ---\n", vbo->name));
|
GLimp_LogComment(va("--- GL_VertexAttribPointers( %s ) ---\n", vbo->name));
|
||||||
|
}
|
||||||
|
|
||||||
// position/normal/tangent are always set in case of animation
|
// position/normal/tangent are always set in case of animation
|
||||||
oldFrame = glState.vertexAttribsOldFrame;
|
oldFrame = glState.vertexAttribsOldFrame;
|
||||||
|
|
Loading…
Reference in a new issue