summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_animation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderergl2/tr_animation.c')
-rw-r--r--src/renderergl2/tr_animation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderergl2/tr_animation.c b/src/renderergl2/tr_animation.c
index 54968613..b5dbc330 100644
--- a/src/renderergl2/tr_animation.c
+++ b/src/renderergl2/tr_animation.c
@@ -351,7 +351,7 @@ void RB_MDRSurfaceAnim( mdrSurface_t *surface )
oldFrame = (mdrFrame_t *)((byte *)header + header->ofsFrames +
backEnd.currentEntity->e.oldframe * frameSize );
- RB_CheckOverflow( surface->numVerts, surface->numTriangles );
+ RB_CHECKOVERFLOW( surface->numVerts, surface->numTriangles * 3 );
triangles = (int *) ((byte *)surface + surface->ofsTriangles);
indexes = surface->numTriangles * 3;