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:
@@ -129,6 +129,7 @@ wlsc_surface_create(struct wlsc_compositor *compositor,
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
wl_list_init(&surface->surface.destroy_listener_list);
|
wl_list_init(&surface->surface.destroy_listener_list);
|
||||||
|
wl_list_init(&surface->link);
|
||||||
|
|
||||||
glGenTextures(1, &surface->texture);
|
glGenTextures(1, &surface->texture);
|
||||||
glBindTexture(GL_TEXTURE_2D, surface->texture);
|
glBindTexture(GL_TEXTURE_2D, surface->texture);
|
||||||
|
|||||||
Reference in New Issue
Block a user