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.
This commit is contained in:
Simon Ser 2021-11-27 20:01:48 +01:00
parent ffd4a27714
commit 051d1ce90e
2 changed files with 53 additions and 9 deletions

View file

@ -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.
*