compositor: Check if surface creation failed in weston_compositor_fade.

John Kåre Alsaker 12 years ago committed by Kristian Høgsberg
parent 143a898fcc
commit e2e3d07beb
  1. 3
      src/compositor.c

@ -1099,6 +1099,9 @@ weston_compositor_fade(struct weston_compositor *compositor, float tint)
if (compositor->fade.surface == NULL) { if (compositor->fade.surface == NULL) {
surface = weston_surface_create(compositor); surface = weston_surface_create(compositor);
if (!surface)
return;
weston_surface_configure(surface, 0, 0, 8192, 8192); weston_surface_configure(surface, 0, 0, 8192, 8192);
weston_surface_set_color(surface, 0.0, 0.0, 0.0, 0.0); weston_surface_set_color(surface, 0.0, 0.0, 0.0, 0.0);
wl_list_insert(&compositor->fade_layer.surface_list, wl_list_insert(&compositor->fade_layer.surface_list,

Loading…
Cancel
Save