From 3cb59050f3bcbec150f61e8cf03fcb94ae4f9cd1 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 11 Sep 2020 17:50:33 -0300 Subject: [PATCH] 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 38c4c3618..f598332c8 100644 --- a/clutter/clutter/clutter-util.c +++ b/clutter/clutter/clutter-util.c @@ -74,9 +74,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),