From 1caa95b8148a27c73b7db42295ba85b1420eb56a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 11 Oct 2019 21:49:13 +0200 Subject: [PATCH] gl renderer: Avoid copying a rect --- gsk/gl/gskglrenderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c index 531e145d62..f46542c74b 100644 --- a/gsk/gl/gskglrenderer.c +++ b/gsk/gl/gskglrenderer.c @@ -1085,13 +1085,13 @@ render_clip_node (GskGLRenderer *self, GskRenderNode *node, RenderOpBuilder *builder) { + const graphene_rect_t *clip = gsk_clip_node_peek_clip (node); GskRenderNode *child = gsk_clip_node_get_child (node); graphene_rect_t transformed_clip; graphene_rect_t intersection; GskRoundedRect child_clip; - transformed_clip = *gsk_clip_node_peek_clip (node); - ops_transform_bounds_modelview (builder, &transformed_clip, &transformed_clip); + ops_transform_bounds_modelview (builder, clip, &transformed_clip); graphene_rect_intersection (&transformed_clip, &builder->current_clip->bounds,