Matrix multiplication in official Android OpenGL ES 2.0 tutorial

view story

http://stackoverflow.com – I'm reading official Android OpenGL ES 2.0 tutorial, and I noticed something. The code in the tutorial multiplies rotation matrix into the view-projection matrix like this: Matrix.multiplyMM(mMVPMatrix, 0, mRotationMatrix, 0, mMVPMatrix, 0); But, the documentation for this method specifies that the result matrix, and either of operands should not overlap, or the result is undefined: Multiply two 4x4 matrices together and store the result in a third 4x4 matrix. In matrix notation: result = lhs x rhs. Due to the way matrix multiplication works, the result matrix will have the same effect (HowTos)