[mutter/gbsneto/graphene2: 41/45] fixup! cogl/matrix: Scale using Graphene



commit b1c0128a2b4e491f2386ec65d05961c65be5230d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Mar 7 10:44:43 2019 -0300

    fixup! cogl/matrix: Scale using Graphene

 cogl/cogl/cogl-matrix.c | 13 -------------
 1 file changed, 13 deletions(-)
---
diff --git a/cogl/cogl/cogl-matrix.c b/cogl/cogl/cogl-matrix.c
index 112a70fc1..449e90b03 100644
--- a/cogl/cogl/cogl-matrix.c
+++ b/cogl/cogl/cogl-matrix.c
@@ -254,24 +254,11 @@ cogl_matrix_scale (CoglMatrix *matrix,
                   float sz)
 {
   graphene_matrix_t m;
-  CoglMatrix old;
 
   cogl_matrix_to_graphene_matrix (matrix, &m);
-
-  /* Cogl moves the matrix to 0, scales it, then moves back
-   * to the previous transform point. To ease transition,
-   * preserve that behavior.
-   */
-  old = *matrix;
-
   graphene_matrix_scale (&m, sx, sy, sz);
   graphene_matrix_to_cogl_matrix (&m, matrix);
 
-  matrix->wx = old.wx;
-  matrix->wy = old.wy;
-  matrix->wz = old.wz;
-  matrix->ww = old.ww;
-
   _COGL_MATRIX_DEBUG_PRINT (matrix);
 }
 


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