aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-09 12:00:31 +0100
committerSimon Ser <contact@emersion.fr>2021-01-12 11:31:04 +0100
commit1d461687d24856a15fd8c37f744f40730888c9b0 (patch)
tree7d4a3856171310b71b0edb42e0b3b82204952f52 /include
parent50b120927ddcf26c83b219ebe9351b143efebfad (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/wlr/render/egl.h5
1 files changed, 2 insertions, 3 deletions
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.