summaryrefslogtreecommitdiff
blob: 4632ea1ff5ac7311f4251dd5ca198a4cfbacd6aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/cairo-xlib-screen.c b/src/cairo-xlib-screen.c
index c456b16..60421cd 100644
--- a/src/cairo-xlib-screen.c
+++ b/src/cairo-xlib-screen.c
@@ -400,6 +400,7 @@ _cairo_xlib_screen_get_gc (cairo_xlib_screen_info_t *info, int depth)
     gc = info->gc[depth];
     info->gc[depth] = NULL;
     needs_reset = info->gc_needs_clip_reset & (1 << depth);
+    info->gc_needs_clip_reset &= ~(1 << depth);
     CAIRO_MUTEX_UNLOCK (info->mutex);
 
     if (needs_reset)