[cogl/wip/rib/cogl-1.12: 67/101] Fix a typo in _cogl_matrix_init_translation
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/rib/cogl-1.12: 67/101] Fix a typo in _cogl_matrix_init_translation
- Date: Mon, 6 Aug 2012 13:06:41 +0000 (UTC)
commit 88e273bbfe798b55e5c4cdb2c3bc56f747833ddd
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.
(cherry picked from commit b44feb617ecb9cbf7d53f0d745f686c17ef3246d)
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 0989c08..376af5c 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]