From b1c0128a2b4e491f2386ec65d05961c65be5230d Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 7 Mar 2019 10:44:43 -0300 Subject: [PATCH] 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); }