Fix 16-bit mdl loading for glsl.

The extra precision verts are offset by numverts, not numposes :P
This commit is contained in:
Bill Currie 2012-08-07 17:06:01 +09:00
parent 971e689d3d
commit 31dead3dcd

View file

@ -184,7 +184,7 @@ glsl_Mod_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr, void *_m,
for (j = 0; j < hdr->mdl.numverts; j++) {
pv = &poseverts[i][j];
if (extra) {
VectorMultAdd (pv[hdr->numposes].v, 256, pv->v,
VectorMultAdd (pv[hdr->mdl.numverts].v, 256, pv->v,
verts[pose + j].vertex);
} else {
VectorCopy (pv->v, verts[pose + j].vertex);