diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-11-07 13:38:45 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-11-11 19:10:10 +0100 |
commit | 4c9423278a66ddb9cb03cee33473b1332150230f (patch) | |
tree | 5a467c161fcbc0bdccf948ed53b6b7c2e224db3c /render/gles2 | |
parent | aa9ea95e1fffde31be72ffaf204a3aaf2893858e (diff) |
Introduce wlr_renderer_get_egl
Diffstat (limited to 'render/gles2')
-rw-r--r-- | render/gles2/renderer.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |