fix bug in guMatrix4x4To3x3() using sizeof()
This commit is contained in:
parent
0d78e3cf4f
commit
4d638ada08
@ -200,7 +200,7 @@ void guMatrix4x4To3x3(guMatrix3x3 *out, const guMatrix4x4 *in)
|
||||
int i;
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
memcpy(&(*out)[i], &(*in)[i], sizeof((*out)[0][0] * 3));
|
||||
memcpy(&(*out)[i], &(*in)[i], sizeof((*out)[0][0]) * 3);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user