Turns out I'm just dumb. They're both 4x3 matrices, but I didn't figure that out because I only tried 3x4 matrices. The reason the returned matrix was modified was because it was normalizing the matrix. Someday I'll get the hang of this column-major/row-major nonsense :)