From 1d461687d24856a15fd8c37f744f40730888c9b0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 9 Jan 2021 12:00:31 +0100 Subject: render/egl: replace init/finish with create/destroy This ensures wlr_gles2_renderer can properly take ownership of the wlr_egl. Closes: https://github.com/swaywm/wlroots/issues/2612 --- include/wlr/render/egl.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/wlr/render') diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h index 67f32e42..b967be8e 100644 --- a/include/wlr/render/egl.h +++ b/include/wlr/render/egl.h @@ -78,21 +78,20 @@ struct wlr_egl { struct wlr_drm_format_set dmabuf_render_formats; }; -// TODO: Allocate and return a wlr_egl /** * Initializes an EGL context for the given platform and remote display. * Will attempt to load all possibly required api functions. * * If config_attribs is NULL, the EGL config is not created. */ -bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *remote_display, +struct wlr_egl *wlr_egl_create(EGLenum platform, void *remote_display, const EGLint *config_attribs); /** * Frees all related EGL resources, makes the context not-current and * unbinds a bound wayland display. */ -void wlr_egl_finish(struct wlr_egl *egl); +void wlr_egl_destroy(struct wlr_egl *egl); /** * Binds the given display to the EGL instance. -- cgit v1.2.3