aboutsummaryrefslogtreecommitdiff
path: root/render/gles2/renderer.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-11-07 13:38:45 -0500
committerSimon Ser <contact@emersion.fr>2019-11-11 19:10:10 +0100
commit4c9423278a66ddb9cb03cee33473b1332150230f (patch)
tree5a467c161fcbc0bdccf948ed53b6b7c2e224db3c /render/gles2/renderer.c
parentaa9ea95e1fffde31be72ffaf204a3aaf2893858e (diff)
Introduce wlr_renderer_get_egl
Diffstat (limited to 'render/gles2/renderer.c')
-rw-r--r--render/gles2/renderer.c6
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);