From 5dc52c722cdd1132dee60479641cfa546949e4c9 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Mon, 30 Sep 2013 00:43:48 +0200 Subject: [PATCH] Added mat4 initializer experiment --- glm/core/func_common.inl | 16 ++++++------- glm/core/setup.hpp | 2 +- glm/core/type_mat4x4.hpp | 12 ++++++++++ glm/core/type_mat4x4.inl | 26 +++++++++++++++++++- test/core/core_type_mat4x4.cpp | 44 ++++++++++++++++++++++++++++++++++ test/core/core_type_vec4.cpp | 8 ++++++- 6 files changed, 97 insertions(+), 11 deletions(-) diff --git a/glm/core/func_common.inl b/glm/core/func_common.inl index 10f2a4e2..79935d04 100644 --- a/glm/core/func_common.inl +++ b/glm/core/func_common.inl @@ -1000,46 +1000,46 @@ namespace detail GLM_FUNC_QUALIFIER int floatBitsToInt(float const & v) { - return *reinterpret_cast(const_cast(&v)); + return reinterpret_cast(const_cast(v)); } template