aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-05-03 17:17:14 +1200
committerScott Anderson <ascent12@hotmail.com>2017-05-03 17:17:14 +1200
commit15d247bf3455904bf2262d2bf5d27645c03c9399 (patch)
tree0e60257b86768b25f1986fd76a6424c017a20e7c /include/backend
parentdbceaee9faaaf24016024bd22b38fa0186bb5e08 (diff)
Changed drm to use new EGL interface.
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/drm/drm.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h
index 17d4aa90..346974ca 100644
--- a/include/backend/drm/drm.h
+++ b/include/backend/drm/drm.h
@@ -7,6 +7,8 @@
#include <EGL/egl.h>
#include <gbm.h>
+#include "backend/egl.h"
+
struct wlr_drm_renderer {
int fd;
@@ -16,11 +18,7 @@ struct wlr_drm_renderer {
struct wlr_drm_backend *backend;
struct gbm_device *gbm;
- struct {
- EGLDisplay disp;
- EGLConfig conf;
- EGLContext context;
- } egl;
+ struct wlr_egl egl;
};
bool wlr_drm_renderer_init(struct wlr_drm_renderer *renderer,