gl: Do not reset the current target on release

This now also requires a call to cairo_device_flush().
This commit is contained in:
Benjamin Otte 2010-06-02 15:26:45 +02:00
parent ce36be5c67
commit d9dcafd61a

View file

@ -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);