From d9dcafd61ad6aeecb4538e9fd44e3443a8a50bf1 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 2 Jun 2010 15:26:45 +0200 Subject: [PATCH] gl: Do not reset the current target on release This now also requires a call to cairo_device_flush(). --- src/cairo-gl-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-gl-device.c b/src/cairo-gl-device.c index af897f159..ff64ae6f6 100644 --- a/src/cairo-gl-device.c +++ b/src/cairo-gl-device.c @@ -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);