commit | 12bbf81456dde4bc6f251d6e82bcc265eafa4a91 | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Fri Feb 17 12:15:27 2012 -0500 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Fri Feb 17 12:15:27 2012 -0500 |
tree | bfeb75bc7f55b1ad3d152899648eb537fd782ced | |
parent | 101cb6560c79e9013771064987cc1ed89291436d [diff] [blame] |
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 @@ 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);