From 56a037ff14b2ba7a4f73efc30ba2d7fda2b0e549 Mon Sep 17 00:00:00 2001 From: cutealien Date: Thu, 4 Jul 2019 20:13:49 +0000 Subject: [PATCH] Fix wrong index used in CMatrix4::transformVec4 Thx @Thomas Alten for reporting. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5831 dfc29bdd-3216-0410-991c-e03cc46cb475 --- include/matrix4.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/matrix4.h b/include/matrix4.h index 162c508f..01289011 100644 --- a/include/matrix4.h +++ b/include/matrix4.h @@ -1234,7 +1234,7 @@ namespace core out[0] = in[0]*M[0] + in[1]*M[4] + in[2]*M[8] + in[3]*M[12]; out[1] = in[0]*M[1] + in[1]*M[5] + in[2]*M[9] + in[3]*M[13]; out[2] = in[0]*M[2] + in[1]*M[6] + in[2]*M[10] + in[3]*M[14]; - out[3] = in[0]*M[3] + in[1]*M[7] + in[2]*M[11] + in[3]*M[16]; + out[3] = in[0]*M[3] + in[1]*M[7] + in[2]*M[11] + in[3]*M[15]; } @@ -1704,9 +1704,9 @@ namespace core M[8] = 0; M[9] = 0; - // M[10] + // M[10] M[11] = 0; - + M[12] = 0; M[13] = 0; // M[14] @@ -1750,12 +1750,12 @@ namespace core M[8] = 0; M[9] = 0; - // M[10] + // M[10] M[11] = 0; M[12] = 0; M[13] = 0; - // M[14] + // M[14] M[15] = 1; if ( zClipFromZero )