compositor: Check if surface creation failed in weston_compositor_fade.
This commit is contained in:
parent
143a898fcc
commit
e2e3d07beb
@ -1099,6 +1099,9 @@ weston_compositor_fade(struct weston_compositor *compositor, float tint)
|
||||
|
||||
if (compositor->fade.surface == NULL) {
|
||||
surface = weston_surface_create(compositor);
|
||||
if (!surface)
|
||||
return;
|
||||
|
||||
weston_surface_configure(surface, 0, 0, 8192, 8192);
|
||||
weston_surface_set_color(surface, 0.0, 0.0, 0.0, 0.0);
|
||||
wl_list_insert(&compositor->fade_layer.surface_list,
|
||||
|
Loading…
Reference in New Issue
Block a user