mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
wayland/cursor-surface: Remove unnecessary NULL check
The priv->cursor_sprite is created on init() and destroyed on dispose() so it will never be NULL when updating the cursor sprite texture. https://gitlab.gnome.org/GNOME/mutter/issues/77
This commit is contained in:
parent
b8336633a7
commit
b7e9388906
@ -61,7 +61,7 @@ update_cursor_sprite_texture (MetaWaylandCursorSurface *cursor_surface)
|
|||||||
|
|
||||||
g_return_if_fail (!buffer || buffer->texture);
|
g_return_if_fail (!buffer || buffer->texture);
|
||||||
|
|
||||||
if (!priv->cursor_renderer || !cursor_sprite)
|
if (!priv->cursor_renderer)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (buffer)
|
if (buffer)
|
||||||
|
Loading…
Reference in New Issue
Block a user