diff options
author | Simon Ser <contact@emersion.fr> | 2021-06-01 15:59:51 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-06-01 13:11:24 -0400 |
commit | b732f094c63e7b1f740a9ef48072a2172e8669da (patch) | |
tree | 56116afae7ef735dfc60e39d1530d58abc397228 /render | |
parent | ce3e819b33c47974e0d635e87381800ac3c8df59 (diff) |
render: disallow wlr_renderer_destroy while rendering
This probably already felt apart, but let's make it explicit that
this is not allowed.
Diffstat (limited to 'render')
-rw-r--r-- | render/wlr_renderer.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |