aboutsummaryrefslogtreecommitdiffstats
path: root/compositor
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-01-06 15:32:14 -0500
committerKristian Høgsberg <krh@bitplanet.net>2011-01-06 15:32:14 -0500
commitf6b1471fd8a67a14d54d3f45bef3020e895f8c03 (patch)
tree1d6d314f94b2f9ac1d1b61e92929fd4f6d9ef950 /compositor
parentMerge remote branch 'nobled/fixes2' (diff)
downloadwayland-f6b1471fd8a67a14d54d3f45bef3020e895f8c03.tar
wayland-f6b1471fd8a67a14d54d3f45bef3020e895f8c03.tar.gz
wayland-f6b1471fd8a67a14d54d3f45bef3020e895f8c03.tar.bz2
wayland-f6b1471fd8a67a14d54d3f45bef3020e895f8c03.tar.lz
wayland-f6b1471fd8a67a14d54d3f45bef3020e895f8c03.tar.xz
wayland-f6b1471fd8a67a14d54d3f45bef3020e895f8c03.tar.zst
wayland-f6b1471fd8a67a14d54d3f45bef3020e895f8c03.zip
Initialize surface->link so we can always wl_list_remove() it
In particular, even if we never added it to the compositor surface list.
Diffstat (limited to 'compositor')
-rw-r--r--compositor/compositor.c1
1 files changed, 1 insertions, 0 deletions
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 @@ 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);