summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_glsl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderergl2/tr_glsl.c')
-rw-r--r--src/renderergl2/tr_glsl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/renderergl2/tr_glsl.c b/src/renderergl2/tr_glsl.c
index fb4a0a2d..fd50734e 100644
--- a/src/renderergl2/tr_glsl.c
+++ b/src/renderergl2/tr_glsl.c
@@ -1512,12 +1512,12 @@ void GLSL_VertexAttribPointers(uint32_t attribBits)
newFrame = glState.vertexAttribsNewFrame;
if (glState.vertexAnimation)
{
- extraOffsets[ATTR_INDEX_POSITION] = newFrame * vao->size_xyz;
- extraOffsets[ATTR_INDEX_POSITION2] = oldFrame * vao->size_xyz;
- extraOffsets[ATTR_INDEX_NORMAL] = newFrame * vao->size_normal;
- extraOffsets[ATTR_INDEX_NORMAL2] = oldFrame * vao->size_normal;
- extraOffsets[ATTR_INDEX_TANGENT] = newFrame * vao->size_normal;
- extraOffsets[ATTR_INDEX_TANGENT2] = oldFrame * vao->size_normal;
+ extraOffsets[ATTR_INDEX_POSITION] = newFrame * vao->frameSize;
+ extraOffsets[ATTR_INDEX_POSITION2] = oldFrame * vao->frameSize;
+ extraOffsets[ATTR_INDEX_NORMAL] = newFrame * vao->frameSize;
+ extraOffsets[ATTR_INDEX_NORMAL2] = oldFrame * vao->frameSize;
+ extraOffsets[ATTR_INDEX_TANGENT] = newFrame * vao->frameSize;
+ extraOffsets[ATTR_INDEX_TANGENT2] = oldFrame * vao->frameSize;
}
// this may not be bound if we're using VAOs