[mutter] clutter/paint-nodes: Fix blit node oversights



commit 3a3eaf5ad33844a26af4cdceb9b5f6822886bb0f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Dec 9 14:52:25 2020 -0300

    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>

 clutter/clutter/clutter-paint-nodes.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-paint-nodes.c b/clutter/clutter/clutter-paint-nodes.c
index 1cdd09ff84..ae0eac87ec 100644
--- a/clutter/clutter/clutter-paint-nodes.c
+++ b/clutter/clutter/clutter-paint-nodes.c
@@ -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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]