mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
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:
parent
b947dced40
commit
4b939439ac
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user