mirror of
https://github.com/brl/mutter.git
synced 2024-11-09 15:37:00 -05:00
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:
parent
d57bdb0b44
commit
3a3eaf5ad3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user