shaped-texture: Start using MetaMultiTexture
To be able to later support more complex YUV formats, we need to make sure that MetaShapedTexture (the one who will actually render the texture) can use the MetaMultiTexture class. Co-Authored-By: Robert Mader <robert.mader@collabora.com> Co-Authored-By: Daniel van Vugt <daniel.van.vugt@canonical.com> Co-Authored-By: Sebastian Wick <sebastian.wick@redhat.com> Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2191>
This commit is contained in:

committed by
Marge Bot

parent
5181a826d1
commit
3dd9f15eba
@ -61,16 +61,17 @@ update_cursor_sprite_texture (MetaWaylandCursorSurface *cursor_surface)
|
||||
MetaWaylandSurface *surface =
|
||||
meta_wayland_surface_role_get_surface (META_WAYLAND_SURFACE_ROLE (cursor_surface));
|
||||
MetaCursorSprite *cursor_sprite = META_CURSOR_SPRITE (priv->cursor_sprite);
|
||||
CoglTexture *texture;
|
||||
MetaMultiTexture *texture;
|
||||
|
||||
if (!priv->cursor_renderer)
|
||||
return;
|
||||
|
||||
texture = meta_wayland_surface_get_texture (surface);
|
||||
if (texture)
|
||||
|
||||
if (texture && meta_multi_texture_is_simple (texture))
|
||||
{
|
||||
meta_cursor_sprite_set_texture (cursor_sprite,
|
||||
texture,
|
||||
meta_multi_texture_get_plane (texture, 0),
|
||||
priv->hot_x * surface->scale,
|
||||
priv->hot_y * surface->scale);
|
||||
}
|
||||
|
Reference in New Issue
Block a user