From 128c30714285475fb46f3165db0f5082202cb9b5 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 22 Nov 2011 18:55:03 +0000 Subject: [PATCH 1/2] Fixed outerProduct --- glm/core/func_matrix.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glm/core/func_matrix.inl b/glm/core/func_matrix.inl index d7aa7a43..4bbfc511 100644 --- a/glm/core/func_matrix.inl +++ b/glm/core/func_matrix.inl @@ -74,7 +74,7 @@ namespace glm GLM_STATIC_ASSERT(detail::type::is_float, "'outerProduct' only accept floating-point inputs"); detail::tmat3x3 m(detail::tmat3x3::null); - for(typename detail::tmat3x3::size_type i = 0; i < detail::tmat3x3::col_size(); ++i) + for(typename detail::tmat3x3::size_type i(0); i < m.length(); ++i) m[i] = c * r[i]; return m; } @@ -89,7 +89,7 @@ namespace glm GLM_STATIC_ASSERT(detail::type::is_float, "'outerProduct' only accept floating-point inputs"); detail::tmat4x4 m(detail::tmat4x4::null); - for(typename detail::tmat4x4::size_type i = 0; i < detail::tmat4x4::col_size(); ++i) + for(typename detail::tmat4x4::size_type i(0); i < m.length(); ++i) m[i] = c * r[i]; return m; } From e71dd49d6135cb4a7f0845ff1bab0473dce1e21f Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 22 Nov 2011 18:55:32 +0000 Subject: [PATCH 2/2] Fixed outerProduct --- readme.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.txt b/readme.txt index 94b22ee2..5c4d5b19 100644 --- a/readme.txt +++ b/readme.txt @@ -41,6 +41,7 @@ GLM 0.9.2.8: 2011-12-XX -------------------------------------------------------------------------------- - Fixed modf implementation - Fixed step function accuracy +- Fixed outerProduct ================================================================================ GLM 0.9.2.7: 2011-10-24