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:
Jonas Ådahl 2018-04-30 11:59:22 +02:00
parent b8336633a7
commit b7e9388906

View File

@ -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)