cogl/graphene-utils: Simplify

This commit is contained in:
Georges Basile Stavracas Neto 2019-03-11 16:55:58 -03:00
parent b1c0128a2b
commit 5289026257
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385

View File

@ -71,8 +71,5 @@ void
graphene_matrix_to_cogl_matrix (const graphene_matrix_t *matrix, graphene_matrix_to_cogl_matrix (const graphene_matrix_t *matrix,
CoglMatrix *res) CoglMatrix *res)
{ {
float data[16]; graphene_matrix_to_float (matrix, (float *)res);
graphene_matrix_to_float (matrix, data);
cogl_matrix_init_from_array (res, data);
} }