]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix boneposerelative address
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 Mar 2013 21:01:54 +0000 (21:01 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 28 Mar 2013 15:41:39 +0000 (16:41 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11928 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d6f2d1bfdcd3e5c84c15491afd73c7b665168cce

mod_skeletal_animatevertices_generic.c

index 5c1045e460a700c611a60381fc36a9787b6b76a4..43563457212300837fde2d38ffcb70ba2a322fa2 100644 (file)
@@ -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);