commit | f6b1471fd8a67a14d54d3f45bef3020e895f8c03 | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Thu Jan 06 15:32:14 2011 -0500 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Thu Jan 06 15:32:14 2011 -0500 |
tree | 1d6d314f94b2f9ac1d1b61e92929fd4f6d9ef950 | |
parent | 4e63c6313bb9167842d07c78ea3573307e75404a [diff] [blame] |
Initialize surface->link so we can always wl_list_remove() it In particular, even if we never added it to the compositor surface list.
diff --git a/compositor/compositor.c b/compositor/compositor.c index 2146c9b..29a1f52 100644 --- a/compositor/compositor.c +++ b/compositor/compositor.c
@@ -129,6 +129,7 @@ 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);