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); }