projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
101cb65
)
compositor: Only delete surface texture if we have one
author
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 17 Feb 2012 17:15:27 +0000
(12:15 -0500)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 17 Feb 2012 17:15:27 +0000
(12:15 -0500)
src/compositor.c
patch
|
blob
|
history
diff --git
a/src/compositor.c
b/src/compositor.c
index
f07b14c
..
c690a43
100644
(file)
--- 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);