clutter/paint-nodes: Stop using deprecated cogl_pango API

As with ClutterText, use the one where you pass the framebuffer
explicitly.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/935
This commit is contained in:
Jonas Ådahl 2019-11-20 22:09:54 +01:00 committed by Georges Basile Stavracas Neto
parent 339372ac99
commit 53431fce2a

View File

@ -841,11 +841,11 @@ clutter_text_node_draw (ClutterPaintNode *node,
clipped = TRUE; clipped = TRUE;
} }
cogl_pango_render_layout (tnode->layout, cogl_pango_show_layout (fb,
tnode->layout,
op->op.texrect[0], op->op.texrect[0],
op->op.texrect[1], op->op.texrect[1],
&tnode->color, &tnode->color);
0);
if (clipped) if (clipped)
cogl_framebuffer_pop_clip (fb); cogl_framebuffer_pop_clip (fb);