From: eihrul Date: Tue, 26 Mar 2013 21:01:54 +0000 (+0000) Subject: fix boneposerelative address X-Git-Tag: xonotic-v0.7.0~24 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=768dbc59b4d43c5b7c9d19dfe184915c30a33bc8;p=xonotic%2Fdarkplaces.git fix boneposerelative address git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11928 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=d6f2d1bfdcd3e5c84c15491afd73c7b665168cce --- 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);