From 051d1ce90ef9ab3ce931b3b2df43012960df514b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 27 Nov 2021 20:01:48 +0100 Subject: render/egl: add wlr_egl_create_with_context This allows creating a wlr_egl from an already-existing EGL display and context. This is useful to allow compositors to choose the exact EGL initialization parameters. --- include/wlr/render/egl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/wlr/render') diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h index 8db0718a..2af073ca 100644 --- a/include/wlr/render/egl.h +++ b/include/wlr/render/egl.h @@ -69,6 +69,9 @@ struct wlr_egl { struct wlr_drm_format_set dmabuf_render_formats; }; +struct wlr_egl *wlr_egl_create_with_context(EGLDisplay display, + EGLContext context); + /** * Make the EGL context current. * -- cgit v1.2.3