mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 01:48:00 +02:00
compositor: Check if surface creation failed in weston_compositor_fade.
This commit is contained in:
parent
143a898fcc
commit
e2e3d07beb
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue