From 4e29b3ea2c4cfbf1494d9bf50edc52497de7ed87 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 29 Apr 2019 08:48:40 +0200 Subject: [PATCH] include/Spectre/Math/Matrix4.inl: make sure the default constructor creates a zero matrix. --- include/Spectre/Math/Matrix4.inl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/Spectre/Math/Matrix4.inl b/include/Spectre/Math/Matrix4.inl index 9f11241..1ece4d4 100644 --- a/include/Spectre/Math/Matrix4.inl +++ b/include/Spectre/Math/Matrix4.inl @@ -14,6 +14,10 @@ const Matrix4f Matrix4f::Identity( template inline Matrix4::Matrix4() { + e[0] = T(0); e[4] = T(0); e[8] = T(0); e[12] = T(0); + e[1] = T(0); e[5] = T(0); e[9] = T(0); e[13] = T(0); + e[2] = T(0); e[6] = T(0); e[10] = T(0); e[14] = T(0); + e[3] = T(0); e[7] = T(0); e[11] = T(0); e[15] = T(0); } template