From 54e5ef39c0762918d4a0f0a7932c17a875e04c5d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 20 Jan 2021 21:20:55 +0100 Subject: Revert "render/egl: remove unused gbm_device member" This reverts commit 306cf11d8702c82be61e027a9bb76e27e89b34d3. --- render/egl.c | 5 +++++ render/wlr_renderer.c | 1 + 2 files changed, 6 insertions(+) (limited to 'render') diff --git a/render/egl.c b/render/egl.c index af6d6892..4cc117c8 100644 --- a/render/egl.c +++ b/render/egl.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -487,6 +488,10 @@ void wlr_egl_destroy(struct wlr_egl *egl) { eglTerminate(egl->display); eglReleaseThread(); + if (egl->gbm_device) { + gbm_device_destroy(egl->gbm_device); + } + free(egl); } diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 94ec63ec..7ce86695 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3