Bläddra i källkod

Merge pull request #11 from bitshifter/master

float4_ref div was multiplying
Branimir Karadžić 12 år sedan
förälder
incheckning
1f537ccee5
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      include/bx/float4_ref.h

+ 4 - 4
include/bx/float4_ref.h

@@ -297,10 +297,10 @@ IMPLEMENT_TEST(xyzw , 0xf);
 	BX_FLOAT4_INLINE float4_t float4_div(float4_t _a, float4_t _b)
 	BX_FLOAT4_INLINE float4_t float4_div(float4_t _a, float4_t _b)
 	{
 	{
 		float4_t result;
 		float4_t result;
-		result.fxyzw[0] = _a.fxyzw[0] * _b.fxyzw[0];
-		result.fxyzw[1] = _a.fxyzw[1] * _b.fxyzw[1];
-		result.fxyzw[2] = _a.fxyzw[2] * _b.fxyzw[2];
-		result.fxyzw[3] = _a.fxyzw[3] * _b.fxyzw[3];
+		result.fxyzw[0] = _a.fxyzw[0] / _b.fxyzw[0];
+		result.fxyzw[1] = _a.fxyzw[1] / _b.fxyzw[1];
+		result.fxyzw[2] = _a.fxyzw[2] / _b.fxyzw[2];
+		result.fxyzw[3] = _a.fxyzw[3] / _b.fxyzw[3];
 		return result;
 		return result;
 	}
 	}