Fix a typo in _cogl_matrix_init_translation

The y translation was being initialised with the z value and the z
translation was being left as 0.0.

(cherry picked from commit b44feb617ecb9cbf7d53f0d745f686c17ef3246d)
This commit is contained in:
Neil Roberts 2012-05-21 19:11:09 +01:00 committed by Robert Bragg
parent 67a095b9dd
commit 9a654d173e

View File

@ -1641,7 +1641,7 @@ _cogl_matrix_init_translation (CoglMatrix *matrix,
matrix->xw = tx;
matrix->yw = ty;
matrix->yw = tz;
matrix->zw = tz;
matrix->type = COGL_MATRIX_TYPE_3D;
matrix->flags = MAT_FLAG_TRANSLATION | MAT_DIRTY_INVERSE;