mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Initialize surface->link so we can always wl_list_remove() it
In particular, even if we never added it to the compositor surface list.
This commit is contained in:
parent
4e63c6313b
commit
f6b1471fd8
1 changed files with 1 additions and 0 deletions
|
|
@ -129,6 +129,7 @@ wlsc_surface_create(struct wlsc_compositor *compositor,
|
|||
return NULL;
|
||||
|
||||
wl_list_init(&surface->surface.destroy_listener_list);
|
||||
wl_list_init(&surface->link);
|
||||
|
||||
glGenTextures(1, &surface->texture);
|
||||
glBindTexture(GL_TEXTURE_2D, surface->texture);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue