aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-20 21:20:55 +0100
committerSimon Ser <contact@emersion.fr>2021-01-20 21:32:50 +0100
commit54e5ef39c0762918d4a0f0a7932c17a875e04c5d (patch)
treed167475d7d85f3e302d911be176da64c31f89a18 /render
parent306cf11d8702c82be61e027a9bb76e27e89b34d3 (diff)
Revert "render/egl: remove unused gbm_device member"
This reverts commit 306cf11d8702c82be61e027a9bb76e27e89b34d3.
Diffstat (limited to 'render')
-rw-r--r--render/egl.c5
-rw-r--r--render/wlr_renderer.c1
2 files changed, 6 insertions, 0 deletions
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 <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <gbm.h>
#include <wlr/render/egl.h>
#include <wlr/util/log.h>
#include <wlr/util/region.h>
@@ -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 <assert.h>
#include <stdbool.h>
#include <stdlib.h>
+#include <gbm.h>
#include <wlr/render/egl.h>
#include <wlr/render/gles2.h>
#include <wlr/render/interface.h>