Don't create buffer from NULL pointer

Fixes regression introduced in f58d8ca1bd.
dev
Tim Wiederhake 14 years ago committed by Kristian Høgsberg
parent 93331ff40a
commit ac5c5e7853
  1. 2
      compositor/compositor.c

@ -264,6 +264,8 @@ create_buffer_from_png(struct wlsc_compositor *ec,
struct wl_buffer *buffer;
pixels = wlsc_load_image(filename, width, height);
if(pixels == NULL)
return NULL;
buffer = ec->create_buffer(ec, width, height,
&ec->compositor.premultiplied_argb_visual,

Loading…
Cancel
Save