[cogl] Fix a typo in _cogl_matrix_init_translation



commit b44feb617ecb9cbf7d53f0d745f686c17ef3246d
Author: Neil Roberts <neil linux intel com>
Date:   Mon May 21 19:11:09 2012 +0100

    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.

 cogl/cogl-matrix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-matrix.c b/cogl/cogl-matrix.c
index 021caac..3f0deb5 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]