mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
gl renderer: Don't add clip ops if the clip didn't change
This commit is contained in:
parent
215903c4f1
commit
e14fe222e8
@ -233,6 +233,10 @@ ops_set_clip (RenderOpBuilder *builder,
|
||||
{
|
||||
RenderOp *last_op;
|
||||
|
||||
if (builder->current_program_state &&
|
||||
memcmp (&builder->current_program_state->clip, clip,sizeof (GskRoundedRect)) == 0)
|
||||
return;
|
||||
|
||||
if (builder->render_ops->len > 0)
|
||||
{
|
||||
last_op = &g_array_index (builder->render_ops, RenderOp, builder->render_ops->len - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user