aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorMarkus Ongyerth <ongy@ongy.net>2018-01-29 11:49:31 +0100
committerMarkus Ongyerth <ongy@ongy.net>2018-01-29 11:49:31 +0100
commitcde0f454b376703e68662f9552b38fc10e97b74a (patch)
tree61a07d286d7f9eecb79dbd33be7281f7685cfd06 /backend
parent2cdb646531d949e08b8a0538b05bd38af3157408 (diff)
Clean up the gbm/egl as well
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/renderer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c
index d28164aa..350bfce4 100644
--- a/backend/drm/renderer.c
+++ b/backend/drm/renderer.c
@@ -75,6 +75,10 @@ bool wlr_drm_surface_init(struct wlr_drm_surface *surf,
gbm_surface_release_buffer(surf->gbm, surf->back);
surf->back = NULL;
}
+ gbm_surface_destroy(surf->gbm);
+ }
+ if (surf->egl) {
+ eglDestroySurface(surf->renderer->egl.display, surf->egl);
}
surf->gbm = gbm_surface_create(renderer->gbm, width, height,