diff options
author | Daniel van Vugt <daniel.van.vugt@canonical.com> | 2018-05-23 13:40:50 +0800 |
---|---|---|
committer | Daniel van Vugt <daniel.van.vugt@canonical.com> | 2018-05-31 15:43:27 +0800 |
commit | 62c67be4c832b8787907581e90db0cde19423b16 (patch) | |
tree | a2a0c7049271d7f270fe71822a7ed950a5339c73 /clutter | |
parent | 0332b7394e56f71c15692663ab05f8c84a4b9eff (diff) | |
download | mutter-62c67be4c832b8787907581e90db0cde19423b16.tar.gz |
clutter-actor: Fix uninitialized matrix multiply
`modelview` is uninitialized and the `apply` function just multiplies it.
What we really want is to initialize `modelview` so replace `apply` with
`get`.
Who knows what bugs this may have caused...
Diffstat (limited to 'clutter')
-rw-r--r-- | clutter/clutter/clutter-actor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c index 6954f0396..3e00a11db 100644 --- a/clutter/clutter/clutter-actor.c +++ b/clutter/clutter/clutter-actor.c @@ -2821,7 +2821,7 @@ _clutter_actor_fully_transform_vertices (ClutterActor *self, /* Note: we pass NULL as the ancestor because we don't just want the modelview * that gets us to stage coordinates, we want to go all the way to eye * coordinates */ - _clutter_actor_apply_relative_transformation_matrix (self, NULL, &modelview); + _clutter_actor_get_relative_transformation_matrix (self, NULL, &modelview); /* Fetch the projection and viewport */ _clutter_stage_get_projection_matrix (CLUTTER_STAGE (stage), &projection); |