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-e03cc46cb475master
parent
1dd0b4338e
commit
56a037ff14
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue