Minor alias model rendering speedup.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2002-08-03 07:07:23 +00:00
parent 10c3f91a24
commit f773e1fa36

View file

@ -326,14 +326,14 @@ GL_GetAliasFrameVerts16 (int frame, aliashdr_t *paliashdr, entity_t *e)
if (r_paused || blend > 1.0)
blend = 1.0;
verts1 = verts + e->pose1 * count;
verts2 = verts + e->pose2 * count;
if (blend == 0.0) {
verts = verts1;
verts = verts + e->pose1 * count;
} else if (blend == 1.0) {
verts = verts2;
verts = verts + e->pose2 * count;
} else {
verts1 = verts + e->pose1 * count;
verts2 = verts + e->pose2 * count;
for (i = 0, vo_v = vo->verts; i < count;
i++, vo_v++, verts1++, verts2++) {
VectorBlend (v1, v2, blend, vo_v->vert);
@ -416,17 +416,17 @@ GL_GetAliasFrameVerts (int frame, aliashdr_t *paliashdr, entity_t *e)
}
// wierd things start happening if blend passes 1
if (r_paused || blend > 1)
blend = 1;
verts1 = verts + e->pose1 * count;
verts2 = verts + e->pose2 * count;
if (r_paused || blend > 1.0)
blend = 1.0;
if (blend == 0.0) {
verts = verts1;
verts = verts + e->pose1 * count;
} else if (blend == 1.0) {
verts = verts2;
verts = verts + e->pose2 * count;
} else {
verts1 = verts + e->pose1 * count;
verts2 = verts + e->pose2 * count;
for (i = 0, vo_v = vo->verts; i < count;
i++, vo_v++, verts1++, verts2++) {
VectorBlend (verts1->v, verts2->v, blend, vo_v->vert);