From 4c9423278a66ddb9cb03cee33473b1332150230f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 7 Nov 2019 13:38:45 -0500 Subject: Introduce wlr_renderer_get_egl --- render/gles2/renderer.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'render/gles2') diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 1f579aeb..c156923b 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -356,6 +356,12 @@ static void gles2_init_wl_display(struct wlr_renderer *wlr_renderer, } } +struct wlr_egl *wlr_gles2_renderer_get_egl(struct wlr_renderer *wlr_renderer) { + struct wlr_gles2_renderer *renderer = + gles2_get_renderer(wlr_renderer); + return renderer->egl; +} + static void gles2_destroy(struct wlr_renderer *wlr_renderer) { struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer); -- cgit v1.2.3