[mutter/gbsneto/graphene-matrix: 47/57] clutter/util: Use graphene APIs




commit 4f0191d09b0b845447dd68d9878124b07dee776e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Sep 11 17:50:33 2020 -0300

    clutter/util: Use graphene APIs
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439

 clutter/clutter/clutter-util.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/clutter/clutter/clutter-util.c b/clutter/clutter/clutter-util.c
index 7d4d1f2c0e..12bb396a98 100644
--- a/clutter/clutter/clutter-util.c
+++ b/clutter/clutter/clutter-util.c
@@ -72,9 +72,8 @@ _clutter_util_fully_transform_vertices (const graphene_matrix_t  *modelview,
   if (n_vertices >= 4)
     {
       /* XXX: we should find a way to cache this per actor */
-      cogl_matrix_multiply (&modelview_projection,
-                            projection,
-                            modelview);
+      graphene_matrix_multiply (modelview, projection, &modelview_projection);
+
       cogl_graphene_matrix_project_points (&modelview_projection,
                                            3,
                                            sizeof (graphene_point3d_t),


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