From b732f094c63e7b1f740a9ef48072a2172e8669da Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 1 Jun 2021 15:59:51 +0200 Subject: render: disallow wlr_renderer_destroy while rendering This probably already felt apart, but let's make it explicit that this is not allowed. --- render/wlr_renderer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'render') diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 1fc23657..ac20dd7b 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -37,6 +37,9 @@ void wlr_renderer_destroy(struct wlr_renderer *r) { if (!r) { return; } + + assert(!r->rendering); + wlr_signal_emit_safe(&r->events.destroy, r); if (r->impl && r->impl->destroy) { -- cgit v1.2.3