fix bug in guMatrix4x4To3x3() using sizeof()

This commit is contained in:
Josh Holtrop 2011-10-13 10:46:28 -04:00
parent 0d78e3cf4f
commit 4d638ada08

View File

@ -200,7 +200,7 @@ void guMatrix4x4To3x3(guMatrix3x3 *out, const guMatrix4x4 *in)
int i; int i;
for (i = 0; i < 3; 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);
} }
} }