diff --git a/IlmBase/Imath/ImathMatrix.h b/IlmBase/Imath/ImathMatrix.h index 0c744041..b86b7970 100644 --- a/IlmBase/Imath/ImathMatrix.h +++ b/IlmBase/Imath/ImathMatrix.h @@ -1181,8 +1181,9 @@ template inline Matrix22::Matrix22 () { - memset (x, 0, sizeof (x)); x[0][0] = 1; + x[0][1] = 0; + x[1][0] = 0; x[1][1] = 1; } @@ -1326,8 +1327,9 @@ template inline void Matrix22::makeIdentity() { - memset (x, 0, sizeof (x)); x[0][0] = 1; + x[0][1] = 0; + x[1][0] = 0; x[1][1] = 1; }