mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 22:18:29 +02:00
gl: Acquire the context before destroying it.
This commit is contained in:
parent
c46aec4897
commit
53508e6e30
1 changed files with 3 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ _gl_destroy (void *device)
|
|||
cairo_scaled_font_t *scaled_font, *next_scaled_font;
|
||||
int n;
|
||||
|
||||
ctx->destroy (ctx);
|
||||
ctx->acquire (ctx);
|
||||
|
||||
cairo_list_foreach_entry_safe (scaled_font,
|
||||
next_scaled_font,
|
||||
|
|
@ -105,6 +105,8 @@ _gl_destroy (void *device)
|
|||
for (n = 0; n < ARRAY_LENGTH (ctx->glyph_cache); n++)
|
||||
_cairo_gl_glyph_cache_fini (ctx, &ctx->glyph_cache[n]);
|
||||
|
||||
ctx->destroy (ctx);
|
||||
|
||||
free (ctx);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue