Browse Source

Fixed Syntax error when compiling with GLM_FORCE_CTOR_INIT and GLM_ENABLE_EXPERIMENTAL #753

Christophe Riccio 7 years ago
parent
commit
798ab30b9d
2 changed files with 3 additions and 2 deletions
  1. 2 2
      glm/gtx/dual_quaternion.inl
  2. 1 0
      test/gtx/gtx_dual_quaternion.cpp

+ 2 - 2
glm/gtx/dual_quaternion.inl

@@ -28,8 +28,8 @@ namespace glm
 		template<typename T, qualifier Q>
 		GLM_FUNC_QUALIFIER GLM_CONSTEXPR tdualquat<T, Q>::tdualquat()
 #			ifdef GLM_FORCE_CTOR_INIT
-			: real(tquat<T, P>())
-			, dual(tquat<T, P>(0, 0, 0, 0))
+			: real(tquat<T, Q>())
+			, dual(tquat<T, Q>(0, 0, 0, 0))
 #			endif
 		{}
 #	endif

+ 1 - 0
test/gtx/gtx_dual_quaternion.cpp

@@ -1,4 +1,5 @@
 #define GLM_ENABLE_EXPERIMENTAL
+#define GLM_FORCE_CTOR_INIT
 #include <glm/gtx/dual_quaternion.hpp>
 #include <glm/gtc/matrix_transform.hpp>
 #include <glm/gtc/epsilon.hpp>