aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-01-20 09:17:21 -0500
committerSimon Ser <contact@emersion.fr>2021-01-20 15:29:00 +0100
commit306cf11d8702c82be61e027a9bb76e27e89b34d3 (patch)
tree523321b716dc77be9e50e7f165243488321fcf4b
parentee31be167b4e2c4682f3da6f22bddc23796f213d (diff)
render/egl: remove unused gbm_device member
-rw-r--r--include/wlr/render/egl.h1
-rw-r--r--render/egl.c5
-rw-r--r--render/wlr_renderer.c1
3 files changed, 0 insertions, 7 deletions
diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h
index 3facd87d..3f437553 100644
--- a/include/wlr/render/egl.h
+++ b/include/wlr/render/egl.h
@@ -41,7 +41,6 @@ struct wlr_egl {
EGLConfig config; // may be EGL_NO_CONFIG
EGLContext context;
EGLDeviceEXT device; // may be EGL_NO_DEVICE_EXT
- struct gbm_device *gbm_device;
struct {
// Display extensions
diff --git a/render/egl.c b/render/egl.c
index 4cc117c8..af6d6892 100644
--- a/render/egl.c
+++ b/render/egl.c
@@ -5,7 +5,6 @@
#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>
@@ -488,10 +487,6 @@ 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 7ce86695..94ec63ec 100644
--- a/render/wlr_renderer.c
+++ b/render/wlr_renderer.c
@@ -1,7 +1,6 @@
#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>