aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-11-27 20:01:48 +0100
committerSimon Ser <contact@emersion.fr>2021-12-01 14:08:20 +0100
commit051d1ce90ef9ab3ce931b3b2df43012960df514b (patch)
tree16b2e7ee494fe237bca5fd4180e6536472fe6db9 /include
parentffd4a27714833826542e1b083b3f3ad431f49107 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/render/egl.h3
1 files changed, 3 insertions, 0 deletions
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.
*