summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-06-02 15:26:45 +0200
committerBenjamin Otte <otte@redhat.com>2010-06-07 13:37:48 +0200
commitd9dcafd61ad6aeecb4538e9fd44e3443a8a50bf1 (patch)
tree855c729dc6722d4a7db50d278b6d1128d02ac6ef
parentce36be5c67fa5b574eb11eb98cdd8c9cd7e09335 (diff)
gl: Do not reset the current target on release
This now also requires a call to cairo_device_flush().
-rw-r--r--src/cairo-gl-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-gl-device.c b/src/cairo-gl-device.c
index af897f15..ff64ae6f 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);