mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 04:38:04 +02:00
gl: Do not reset the current target on release
This now also requires a call to cairo_device_flush().
This commit is contained in:
parent
ce36be5c67
commit
d9dcafd61a
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,6 @@ _gl_unlock (void *device)
|
|||
cairo_gl_context_t *ctx = (cairo_gl_context_t *) device;
|
||||
|
||||
ctx->release (ctx);
|
||||
ctx->current_target = NULL;
|
||||
}
|
||||
|
||||
static cairo_status_t
|
||||
|
|
@ -80,6 +79,7 @@ _gl_flush (void *device)
|
|||
ctx->clip_region = NULL;
|
||||
}
|
||||
|
||||
ctx->current_target = NULL;
|
||||
ctx->vertex_size = 0;
|
||||
ctx->pre_shader = NULL;
|
||||
_cairo_gl_set_shader (ctx, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue