From 9a654d173e4609d357f52c42d2e270acb76ea2f3 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Mon, 21 May 2012 19:11:09 +0100 Subject: [PATCH] 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) --- cogl/cogl-matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-matrix.c b/cogl/cogl-matrix.c index 0989c080c..376af5c38 100644 --- a/cogl/cogl-matrix.c +++ b/cogl/cogl-matrix.c @@ -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;