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 --- render/gles2/renderer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'render/gles2') diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 2a78eb3e..5474e1b6 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -694,9 +694,7 @@ static void gles2_destroy(struct wlr_renderer *wlr_renderer) { } wlr_egl_unset_current(renderer->egl); - - wlr_egl_finish(renderer->egl); - free(renderer->egl); + wlr_egl_destroy(renderer->egl); if (renderer->drm_fd >= 0) { close(renderer->drm_fd); -- cgit v1.2.3