From: Kristian Høgsberg Date: Fri, 17 Feb 2012 17:15:27 +0000 (-0500) Subject: compositor: Only delete surface texture if we have one X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12bbf81456dde4bc6f251d6e82bcc265eafa4a91;p=profile%2Fivi%2Fweston-ivi-shell.git compositor: Only delete surface texture if we have one --- diff --git a/src/compositor.c b/src/compositor.c index f07b14c..c690a43 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -592,7 +592,8 @@ destroy_surface(struct wl_resource *resource) weston_compositor_repick(compositor); } - glDeleteTextures(1, &surface->texture); + if (surface->texture) + glDeleteTextures(1, &surface->texture); if (surface->buffer) wl_list_remove(&surface->buffer_destroy_listener.link);