actor: review use of _apply_modelview_transform_recursive
On reviewing the clutter-actor.c code using _apply_modelview_transform_recursive I noticed various comments stating that it will never call the stage's ->apply_transform vfunc to transform into eye coordinates, but actually looking at the implementation that's not true. The comments probably got out of sync with an earlier implementation that had that constraint. This removes the miss-leading comments and also updates various uses of the api where we were manually applying the stage->apply_transform.
This commit is contained in:
@ -530,15 +530,7 @@ update_fbo (ClutterActor *self)
|
||||
if ((source_parent = clutter_actor_get_parent (priv->fbo_source)))
|
||||
{
|
||||
CoglMatrix modelview;
|
||||
|
||||
/* NB: _clutter_actor_apply_modelview_transform_recursive
|
||||
* will never include the transformation between stage
|
||||
* coordinates and OpenGL window coordinates, we have to
|
||||
* explicitly use the stage->apply_transform to get that...
|
||||
*/
|
||||
|
||||
cogl_matrix_init_identity (&modelview);
|
||||
_clutter_actor_apply_modelview_transform (stage, &modelview);
|
||||
_clutter_actor_apply_modelview_transform_recursive (source_parent,
|
||||
NULL,
|
||||
&modelview);
|
||||
|
Reference in New Issue
Block a user