Index: src/OFMatrix4x4.h ================================================================== --- src/OFMatrix4x4.h +++ src/OFMatrix4x4.h @@ -21,11 +21,11 @@ * @brief A 4x4 matrix of floats. */ OF_SUBCLASSING_RESTRICTED @interface OFMatrix4x4: OFObject { - float (*_values)[4]; + OF_ALIGN(16) float _values[4][4]; } #ifdef OF_HAVE_CLASS_PROPERTIES @property (readonly, class) OFMatrix4x4 *identityMatrix; #endif Index: src/OFMatrix4x4.m ================================================================== --- src/OFMatrix4x4.m +++ src/OFMatrix4x4.m @@ -260,22 +260,10 @@ # undef REPLACE } #endif -+ (instancetype)alloc -{ - OFMatrix4x4 *instance; - float (*values)[4]; - - instance = OFAllocObject(self, 16 * sizeof(float), 16, - (void **)&values); - instance->_values = values; - - return instance; -} - + (OFMatrix4x4 *)identityMatrix { return [[[OFMatrix4x4 alloc] initWithValues: identityValues] autorelease]; }