Changed drm to use new EGL interface.

This commit is contained in:
Scott Anderson 2017-05-03 17:17:14 +12:00
parent dbceaee9fa
commit 15d247bf34
2 changed files with 13 additions and 150 deletions

View file

@ -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,