diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2026-09-16 13:43:45 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2026-09-24 03:57:50 +0200 |
| commit | 4f6a77d052bbe66e57e2343c53f1a8ceccefc779 (patch) | |
| tree | 0b82a17c7f31e9eddf5f96c3ec4ba92bb87457fc | |
| parent | 9ae2c53499ac860410471cec9a66b6a25f1966e5 (diff) | |
debug restore pattern reference
| -rw-r--r-- | src/vkvg_context.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vkvg_context.c b/src/vkvg_context.c index 27979e1..c6fd714 100644 --- a/src/vkvg_context.c +++ b/src/vkvg_context.c @@ -1502,10 +1502,10 @@ void vkvg_restore(VkvgContext ctx) { ctx->textDirection = sav->textDirection; if (sav->pattern) { - if (sav->pattern != ctx->pattern) + if (sav->pattern != ctx->pattern) { _update_cur_pattern(ctx, sav->pattern); - else - vkvg_pattern_destroy(sav->pattern); + vkvg_pattern_reference(ctx->pattern); + } } else { ctx->curColor = sav->curColor; _update_cur_pattern(ctx, NULL); |