diff options
Diffstat (limited to 'src/wayland/meta-wayland-single-pixel-buffer.c')
-rw-r--r-- | src/wayland/meta-wayland-single-pixel-buffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wayland/meta-wayland-single-pixel-buffer.c b/src/wayland/meta-wayland-single-pixel-buffer.c index 54bfdac4d..d327a8a97 100644 --- a/src/wayland/meta-wayland-single-pixel-buffer.c +++ b/src/wayland/meta-wayland-single-pixel-buffer.c @@ -111,7 +111,9 @@ meta_wayland_single_pixel_buffer_attach (MetaWaylandBuffer *buffer, CoglTexture **texture, GError **error) { - MetaBackend *backend = meta_get_backend (); + MetaContext *context = + meta_wayland_compositor_get_context (buffer->compositor); + MetaBackend *backend = meta_context_get_backend (context); ClutterBackend *clutter_backend = meta_backend_get_clutter_backend (backend); CoglContext *cogl_context = clutter_backend_get_cogl_context (clutter_backend); |