mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
clutter/stage: Avoid unnecessary call to add_redraw_clip
We're bailing out of clutter_stage_cogl_add_redraw_clip() early without doing anything if we're ignoring redraw clips, so no need to call it if we already know that will be the case. https://gitlab.gnome.org/GNOME/mutter/merge_requests/547
This commit is contained in:
parent
f7ecf3b618
commit
b86fba2f3c
@ -1303,10 +1303,7 @@ clutter_stage_real_queue_redraw (ClutterActor *actor,
|
||||
return TRUE;
|
||||
|
||||
if (_clutter_stage_window_ignoring_redraw_clips (stage_window))
|
||||
{
|
||||
_clutter_stage_window_add_redraw_clip (stage_window, NULL);
|
||||
return FALSE;
|
||||
}
|
||||
return FALSE;
|
||||
|
||||
/* Convert the clip volume into stage coordinates and then into an
|
||||
* axis aligned stage coordinates bounding box...
|
||||
|
Loading…
Reference in New Issue
Block a user