From: eihrul Date: Tue, 26 Mar 2013 21:01:54 +0000 (+0000) Subject: fix boneposerelative address X-Git-Tag: xonotic-v0.8.0~96^2~112 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d6f2d1bfdcd3e5c84c15491afd73c7b665168cce;p=xonotic%2Fdarkplaces.git fix boneposerelative address git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11928 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/mod_skeletal_animatevertices_generic.c b/mod_skeletal_animatevertices_generic.c index 5c1045e4..43563457 100644 --- a/mod_skeletal_animatevertices_generic.c +++ b/mod_skeletal_animatevertices_generic.c @@ -10,7 +10,7 @@ void Mod_Skeletal_AnimateVertices_Generic(const dp_model_t * RESTRICT model, con //unsigned long long ts = rdtsc(); bonepose = (float *) Mod_Skeletal_AnimateVertices_AllocBuffers(sizeof(float[12]) * (model->num_bones*2 + model->surfmesh.num_blends)); - boneposerelative = bonepose + model->num_bones; + boneposerelative = bonepose + model->num_bones * 12; Mod_Skeletal_BuildTransforms(model, frameblend, skeleton, bonepose, boneposerelative);