1
0
Fork 0

compositor/background: Get ClutterBackend from MetaBackend

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3977>
This commit is contained in:
Bilal Elmoussaoui 2024-08-21 01:27:10 +02:00
parent e85d12deac
commit 9c7f196ef6

View file

@ -548,8 +548,10 @@ ensure_color_texture (MetaBackground *self)
{
if (self->color_texture == NULL)
{
ClutterBackend *backend = clutter_get_default_backend ();
CoglContext *ctx = clutter_backend_get_cogl_context (backend);
MetaContext *context = meta_display_get_context (self->display);
MetaBackend *backend = meta_context_get_backend (context);
ClutterBackend *clutter_backend = meta_backend_get_clutter_backend (backend);
CoglContext *ctx = clutter_backend_get_cogl_context (clutter_backend);
GError *error = NULL;
uint8_t pixels[6];
int width, height;