* Fix SSE4.1 in CVector2f

This commit is contained in:
Phillip Stephens 2015-05-03 23:11:11 -07:00
parent 70aae5b648
commit 5e3df9ece4
1 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ public:
{ {
#if __SSE4_1__ #if __SSE4_1__
TVectorUnion result; TVectorUnion result;
result.mVec128 = _mm_dp_ps(mVec128, rhs.mVec128, 0x71); result.mVec128 = _mm_dp_ps(mVec128, rhs.mVec128, 0x31);
return result.v[0]; return result.v[0];
#elif __SSE__ #elif __SSE__
TVectorUnion result; TVectorUnion result;
@ -179,7 +179,7 @@ public:
{ {
#if __SSE4_1__ #if __SSE4_1__
TVectorUnion result; TVectorUnion result;
result.mVec128 = _mm_dp_ps(mVec128, mVec128, 0x71); result.mVec128 = _mm_dp_ps(mVec128, mVec128, 0x31);
return result.v[0]; return result.v[0];
#elif __SSE__ #elif __SSE__
TVectorUnion result; TVectorUnion result;