1
0
Fork 0

tests/clutter: Stop using cogl_offscreen_new_to_texture()

Use the non-deprecated variant.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1496
This commit is contained in:
Jonas Ådahl 2020-10-13 09:39:46 +02:00 committed by Georges Basile Stavracas Neto
parent b947dced40
commit 4b939439ac

View file

@ -252,11 +252,14 @@ test_coglbox_map (ClutterActor *actor)
ClutterPerspective perspective;
float stage_width;
float stage_height;
GError *error = NULL;
CLUTTER_ACTOR_CLASS (test_coglbox_parent_class)->map (actor);
printf ("Creating offscreen\n");
priv->offscreen_id = cogl_offscreen_new_to_texture (priv->texture_id);
priv->offscreen_id = cogl_offscreen_new_with_texture (priv->texture_id);
if (!cogl_framebuffer_allocate (priv->offscreen_id, &error))
g_error ("Failed to allocate framebuffer: %s", error->message);
stage = clutter_actor_get_stage (actor);
clutter_stage_get_perspective (CLUTTER_STAGE (stage), &perspective);