2
0
Christophe Riccio 13 жил өмнө
parent
commit
ade527271e

+ 3 - 3
test/core/core_func_matrix.cpp

@@ -108,7 +108,7 @@ int test_transpose()
     {
         glm::mat3x2 m(0, 1, 2, 3, 4, 5);
         glm::mat2x3 t = glm::transpose(m);
-        Error += t == glm::mat2x3(0, 3, 1, 4, 2, 5) ? 0 : 1;
+        Error += t == glm::mat2x3(0, 2, 4, 1, 3, 5) ? 0 : 1;
     }
     
     {
@@ -126,13 +126,13 @@ int test_transpose()
     {
         glm::mat4x2 m(0, 1, 2, 3, 4, 5, 6, 7);
         glm::mat2x4 t = glm::transpose(m);
-        Error += t == glm::mat2x4(0, 4, 1, 5, 2, 6, 3, 7) ? 0 : 1;
+        Error += t == glm::mat2x4(0, 2, 4, 6, 1, 3, 5, 7) ? 0 : 1;
     }
     
     {
         glm::mat4x3 m(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
         glm::mat3x4 t = glm::transpose(m);
-        Error += t == glm::mat3x4(0, 4, 8, 1, 5, 9, 2, 6, 10, 3, 7, 11) ? 0 : 1;
+        Error += t == glm::mat3x4(0, 3, 6, 9, 1, 4, 7, 10, 2, 5, 8, 11) ? 0 : 1;
     }
     
 	return Error;