[clutter] cairo: Always update texture after ClutterCairoTexture::draw
- From: Andy Wingo <apwingo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] cairo: Always update texture after ClutterCairoTexture::draw
- Date: Wed, 20 Jun 2012 09:50:04 +0000 (UTC)
commit d571719a3dbefbc12097d67fb13e6b0e2007efb3
Author: Andy Wingo <wingo pobox com>
Date: Wed Jun 20 10:26:49 2012 +0200
cairo: Always update texture after ClutterCairoTexture::draw
* clutter/clutter-cairo-texture.c (clutter_cairo_texture_emit_draw):
Always update the Cogl texture after emitting ::draw, since we control
the dynamic extent in which drawing should happen on the cairo_t.
Fixes #677966.
clutter/deprecated/clutter-cairo-texture.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/clutter/deprecated/clutter-cairo-texture.c b/clutter/deprecated/clutter-cairo-texture.c
index 9b4a306..c9bf3a2 100644
--- a/clutter/deprecated/clutter-cairo-texture.c
+++ b/clutter/deprecated/clutter-cairo-texture.c
@@ -347,9 +347,6 @@ clutter_cairo_texture_emit_draw (ClutterCairoTexture *self,
g_assert (self->priv->cr_surface != NULL);
cr = cairo_create (self->priv->cr_surface);
- cairo_set_user_data (cr, &clutter_cairo_texture_context_key,
- ctxt,
- clutter_cairo_texture_context_destroy);
if (ctxt->is_clipped)
{
@@ -368,6 +365,8 @@ clutter_cairo_texture_emit_draw (ClutterCairoTexture *self,
self->priv->cr_context = NULL;
+ clutter_cairo_texture_context_destroy (ctxt);
+
cairo_destroy (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]