diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index 715cc3c97..98b9bd6ee 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -257,8 +257,15 @@ meta_shaped_texture_paint (ClutterActor *actor) int n_rects; int i; - region = cairo_region_copy (priv->clip_region); - cairo_region_intersect (region, priv->opaque_region); + if (priv->clip_region != NULL) + { + region = cairo_region_copy (priv->clip_region); + cairo_region_intersect (region, priv->opaque_region); + } + else + { + region = cairo_region_reference (priv->opaque_region); + } if (cairo_region_is_empty (region)) goto paint_blended;