Fix wrong index used in CMatrix4<T>::transformVec4

Thx @Thomas Alten for reporting.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5831 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2019-07-04 20:13:49 +00:00
parent 1dd0b4338e
commit 56a037ff14
1 changed files with 5 additions and 5 deletions

View File

@ -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 )