mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 04:02:36 +00:00
[eglnative] Set the SYNC_MATRICES on stage realization
Since the stage in the EGL native backend only has one size, and it is determined at realization, we can simply set the SYNC_MATRICES private flag and let _clutter_stage_maybe_setup_viewport() set up the GL viewport at the first redraw.
This commit is contained in:
parent
7c93565902
commit
10f1f6587e
@ -199,6 +199,12 @@ clutter_stage_egl_realize (ClutterActor *actor)
|
|||||||
CLUTTER_ACTOR_UNSET_FLAGS (actor, CLUTTER_ACTOR_REALIZED);
|
CLUTTER_ACTOR_UNSET_FLAGS (actor, CLUTTER_ACTOR_REALIZED);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* since we only have one size and it cannot change, we
|
||||||
|
* just need to update the GL viewport now that we have
|
||||||
|
* been realized
|
||||||
|
*/
|
||||||
|
CLUTTER_SET_PRIVATE_FLAGS (actor, CLUTTER_ACTOR_SYNC_MATRICES);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user