[mutter/gbsneto/graphene2: 42/45] cogl/graphene-utils: Simplify



commit 52890262572a704f98d601b3b712399fd35b1c70
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Mar 11 16:55:58 2019 -0300

    cogl/graphene-utils: Simplify

 cogl/cogl/cogl-graphene-utils.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/cogl/cogl/cogl-graphene-utils.c b/cogl/cogl/cogl-graphene-utils.c
index dc2b71088..3758c64bb 100644
--- a/cogl/cogl/cogl-graphene-utils.c
+++ b/cogl/cogl/cogl-graphene-utils.c
@@ -71,8 +71,5 @@ void
 graphene_matrix_to_cogl_matrix (const graphene_matrix_t *matrix,
                                 CoglMatrix              *res)
 {
-  float data[16];
-
-  graphene_matrix_to_float (matrix, data);
-  cogl_matrix_init_from_array (res, data);
+  graphene_matrix_to_float (matrix, (float *)res);
 }


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