clutter/util: Use graphene APIs

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439
This commit is contained in:
Georges Basile Stavracas Neto 2020-09-11 17:50:33 -03:00
parent 462ade5afe
commit 3cb59050f3

View File

@ -74,9 +74,8 @@ _clutter_util_fully_transform_vertices (const graphene_matrix_t *modelview,
if (n_vertices >= 4) if (n_vertices >= 4)
{ {
/* XXX: we should find a way to cache this per actor */ /* XXX: we should find a way to cache this per actor */
cogl_matrix_multiply (&modelview_projection, graphene_matrix_multiply (modelview, projection, &modelview_projection);
projection,
modelview);
cogl_graphene_matrix_project_points (&modelview_projection, cogl_graphene_matrix_project_points (&modelview_projection,
3, 3,
sizeof (graphene_point3d_t), sizeof (graphene_point3d_t),