From 62b1421635581fbffc50eac680bb5a5d7a0b8535 Mon Sep 17 00:00:00 2001 From: nyorain Date: Tue, 20 Jun 2017 18:26:29 +0200 Subject: Make egl_error function part of the egl interface The function may be useful for backends using egl. --- backend/egl.c | 2 +- include/backend/egl.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/egl.c b/backend/egl.c index 3462113c..cfee59ce 100644 --- a/backend/egl.c +++ b/backend/egl.c @@ -6,7 +6,7 @@ #include "backend/egl.h" #include "common/log.h" -static const char *egl_error(void) { +const char *egl_error(void) { switch (eglGetError()) { case EGL_SUCCESS: return "Success"; diff --git a/include/backend/egl.h b/include/backend/egl.h index 8cef36b7..0422a52b 100644 --- a/include/backend/egl.h +++ b/include/backend/egl.h @@ -10,6 +10,7 @@ struct wlr_egl { 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); -- cgit v1.2.3