1
0
Fork 0

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.
This commit is contained in:
Andy Wingo 2012-06-20 10:26:49 +02:00
parent 286e7e28e8
commit d571719a3d

View file

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