From: eihrul Date: Sat, 11 Feb 2012 17:25:12 +0000 (+0000) Subject: skeleton object openglorientation fix X-Git-Tag: xonotic-v0.7.0~220 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dd0c0b18248dddb3551b88187088a15eae531f11;p=xonotic%2Fdarkplaces.git skeleton object openglorientation fix git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11679 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=3c2d90403b205234bbffdce54a718f35d663c717 --- diff --git a/mod_skeletal_animatevertices_sse.c b/mod_skeletal_animatevertices_sse.c index a25a9224..7a25a6ca 100644 --- a/mod_skeletal_animatevertices_sse.c +++ b/mod_skeletal_animatevertices_sse.c @@ -43,6 +43,7 @@ void Mod_Skeletal_AnimateVertices_SSE(const dp_model_t * RESTRICT model, const f const matrix4x4_t * RESTRICT p = &bonepose[model->data_bones[i].parent]; __m128 s0 = _mm_loadu_ps(s->m[0]), s1 = _mm_loadu_ps(s->m[1]), s2 = _mm_loadu_ps(s->m[2]); #ifdef OPENGLORIENTATION + __m128 s3 = _mm_loadu_ps(s->m[3]); #define SKELETON_MATRIX(r, c) _mm_shuffle_ps(s##c, s##c, _MM_SHUFFLE(r, r, r, r)) #else #define SKELETON_MATRIX(r, c) _mm_shuffle_ps(s##r, s##r, _MM_SHUFFLE(c, c, c, c))