From d6f2d1bfdcd3e5c84c15491afd73c7b665168cce Mon Sep 17 00:00:00 2001 From: eihrul Date: Tue, 26 Mar 2013 21:01:54 +0000 Subject: [PATCH] fix boneposerelative address git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11928 d7cf8633-e32d-0410-b094-e92efae38249 --- mod_skeletal_animatevertices_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2