Browse Source

Fixed SIMD build

Christophe Riccio 8 years ago
parent
commit
1bbf2dafb9
2 changed files with 5 additions and 5 deletions
  1. 1 1
      glm/detail/func_exponential_simd.inl
  2. 4 4
      glm/detail/func_matrix_simd.inl

+ 1 - 1
glm/detail/func_exponential_simd.inl

@@ -13,7 +13,7 @@ namespace detail
 	{
 		GLM_FUNC_QUALIFIER static vec<4, float, Q> call(vec<4, float, Q> const& v)
 		{
-			vec<4, float, P> Result;
+			vec<4, float, Q> Result;
 			Result.data = _mm_sqrt_ps(v.data);
 			return Result;
 		}

+ 4 - 4
glm/detail/func_matrix_simd.inl

@@ -12,7 +12,7 @@ namespace glm{
 namespace detail
 {
 	template<qualifier Q>
-	struct compute_matrixCompMult<mat, 4, 4, float, Q, true>
+	struct compute_matrixCompMult<4, 4, float, Q, true>
 	{
 		GLM_STATIC_ASSERT(detail::is_aligned<P>::value, "Specialization requires aligned");
 
@@ -28,7 +28,7 @@ namespace detail
 	};
 
 	template<qualifier Q>
-	struct compute_transpose<mat, 4, 4, float, Q, true>
+	struct compute_transpose<4, 4, float, Q, true>
 	{
 		GLM_FUNC_QUALIFIER static mat<4, 4, float, Q> call(mat<4, 4, float, Q> const& m)
 		{
@@ -41,7 +41,7 @@ namespace detail
 	};
 
 	template<qualifier Q>
-	struct compute_determinant<mat, 4, 4, float, Q, true>
+	struct compute_determinant<4, 4, float, Q, true>
 	{
 		GLM_FUNC_QUALIFIER static float call(mat<4, 4, float, Q> const& m)
 		{
@@ -50,7 +50,7 @@ namespace detail
 	};
 
 	template<qualifier Q>
-	struct compute_inverse<mat, 4, 4, float, Q, true>
+	struct compute_inverse<4, 4, float, Q, true>
 	{
 		GLM_FUNC_QUALIFIER static mat<4, 4, float, Q> call(mat<4, 4, float, Q> const& m)
 		{