compositor: Only delete surface texture if we have one

Kristian Høgsberg 13 years ago
parent 101cb6560c
commit 12bbf81456
  1. 1
      src/compositor.c

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

Loading…
Cancel
Save