clutter/paint-nodes: Fix blit node oversights

Copy-paste error sneaked ClutterTransformNodeClass in
clutter_blit_node_class_init(). It wasn't problematic
because they both typedef to ClutterPaintNodeClass, but
fix it anyway.

Also switch to g_object_ref() in clutter_blit_node_new().

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1627>
This commit is contained in:
Georges Basile Stavracas Neto 2020-12-09 14:52:25 -03:00
parent d57bdb0b44
commit 3a3eaf5ad3

View File

@ -1731,7 +1731,7 @@ clutter_blit_node_serialize (ClutterPaintNode *node)
}
static void
clutter_blit_node_class_init (ClutterTransformNodeClass *klass)
clutter_blit_node_class_init (ClutterBlitNodeClass *klass)
{
ClutterPaintNodeClass *node_class;
@ -1767,7 +1767,7 @@ clutter_blit_node_new (CoglFramebuffer *src)
g_return_val_if_fail (COGL_IS_FRAMEBUFFER (src), NULL);
res = _clutter_paint_node_create (CLUTTER_TYPE_BLIT_NODE);
res->src = cogl_object_ref (src);
res->src = g_object_ref (src);
return (ClutterPaintNode *) res;
}