@ -592,6 +592,7 @@ destroy_surface(struct wl_resource *resource)
weston_compositor_repick(compositor);
}
if (surface->texture)
glDeleteTextures(1, &surface->texture);
if (surface->buffer)