mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
286e7e28e8
commit
d571719a3d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user