mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
render: disallow wlr_renderer_destroy while rendering
This probably already felt apart, but let's make it explicit that this is not allowed.
This commit is contained in:
parent
ce3e819b33
commit
b732f094c6
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,9 @@ void wlr_renderer_destroy(struct wlr_renderer *r) {
|
||||||
if (!r) {
|
if (!r) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert(!r->rendering);
|
||||||
|
|
||||||
wlr_signal_emit_safe(&r->events.destroy, r);
|
wlr_signal_emit_safe(&r->events.destroy, r);
|
||||||
|
|
||||||
if (r->impl && r->impl->destroy) {
|
if (r->impl && r->impl->destroy) {
|
||||||
|
|
Loading…
Reference in a new issue