[mutter] tests/clutter: Stop using cogl_offscreen_new_to_texture()
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] tests/clutter: Stop using cogl_offscreen_new_to_texture()
- Date: Fri, 16 Oct 2020 16:25:59 +0000 (UTC)
commit 4b939439ac4534047bb253de983c6dad8b4f2cb2
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Tue Oct 13 09:39:46 2020 +0200
tests/clutter: Stop using cogl_offscreen_new_to_texture()
Use the non-deprecated variant.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1496
src/tests/clutter/interactive/test-cogl-offscreen.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/tests/clutter/interactive/test-cogl-offscreen.c
b/src/tests/clutter/interactive/test-cogl-offscreen.c
index 5d80899447..d98f706ea9 100644
--- a/src/tests/clutter/interactive/test-cogl-offscreen.c
+++ b/src/tests/clutter/interactive/test-cogl-offscreen.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]