compositor: Don't try and use a NULL sprite for the device pointer

If loading the pointer images to the sprites fails then do not try and use
those NULL sprites for the pointer.
This commit is contained in:
Rob Bradford 2011-10-25 13:38:31 +01:00
parent 8bd35c7770
commit d354711fc7

View File

@ -1160,6 +1160,9 @@ static void
wlsc_input_device_attach_sprite(struct wlsc_input_device *device,
struct wlsc_sprite *sprite, int x, int y)
{
if (!sprite)
return;
wlsc_sprite_attach(sprite, &device->sprite->surface);
wlsc_input_device_attach(device, x, y, sprite->width, sprite->height);
}