mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-25 23:30:09 +01:00
[xlib] Clear the gc_needs_clip_reset after use.
If you think this commit is reminiscent of40558cb15e, you would be right as it fixes exactly the same bug I made then and reintroduced indc714106e1. So quoting40558cb: After consuming the GC we need to unset the clip reset flag, so that if we try and get a new GC without first putting a fresh one we do not try to call XSetClipMask on a NULL GC.
This commit is contained in:
parent
28a1dabed8
commit
ff5376563b
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue