diff options
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/drm.h | 2 | ||||
-rw-r--r-- | include/backend/egl.h | 18 | ||||
-rw-r--r-- | include/backend/wayland.h | 2 |
3 files changed, 2 insertions, 20 deletions
diff --git a/include/backend/drm.h b/include/backend/drm.h index 2f724524..35265e21 100644 --- a/include/backend/drm.h +++ b/include/backend/drm.h @@ -12,9 +12,9 @@ #include <wlr/backend/session.h> #include <wlr/backend/drm.h> +#include <wlr/egl.h> #include <wlr/util/list.h> -#include <backend/egl.h> #include <backend/udev.h> #include "drm-properties.h" diff --git a/include/backend/egl.h b/include/backend/egl.h deleted file mode 100644 index 0422a52b..00000000 --- a/include/backend/egl.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef WLR_BACKEND_EGL_H -#define WLR_BACKEND_EGL_H - -#include <EGL/egl.h> -#include <stdbool.h> - -struct wlr_egl { - EGLDisplay display; - EGLConfig config; - EGLContext context; -}; - -const char *egl_error(void); -bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *display); -void wlr_egl_free(struct wlr_egl *egl); -EGLSurface wlr_egl_create_surface(struct wlr_egl *egl, void *window); - -#endif diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 792bad37..e6339a23 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -4,10 +4,10 @@ #include <wayland-client.h> #include <wayland-server.h> #include <wayland-egl.h> +#include <wlr/egl.h> #include <wlr/backend/wayland.h> #include <wlr/types/wlr_input_device.h> #include <wlr/util/list.h> -#include "backend/egl.h" struct wlr_backend_state { /* local state */ |